source: trunk/warpin/fm2Utils.wis @ 679

Last change on this file since 679 was 679, checked in by Gregg Young, 14 years ago

More shadowmgr changes

File size: 3.9 KB
Line 
1<!--
2 WARPIN VERSION 0.9.20 is required for PACKAGEID's with revision levels.
3 WARPIN VERSION 0.9.9  is required for EXTRACTFROMPCK.
4-->
5<WARPIN VERSION 0.9.9>
6
7<HEAD>
8<REXX NAME=FindFM2>
9   call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
10   call SysLoadFuncs
11   warpin_path = strip(SysIni(, 'WarpIN', 'Path'), 'T', '00'x)
12   database_file = warpin_path || '\DATBAS_' || left(SysBootDrive(), 1) || '.INI'
13   call SysIni database_file, 'ALL:', 'apps.'
14   fm2_app_prefix = 'Netlabs\FM2\Base\'
15   fm2_app_prefix_len = length(fm2_app_prefix)
16   do a = 1 to apps.0
17      if left(apps.a, fm2_app_prefix_len) = fm2_app_prefix then
18         leave
19   end
20   if a > apps.0 then
21      target_path = WirexxGetEnv('WARPIN_DEFAULTTOOLSPATH')
22   else
23      target_path = strip(SysIni(database_file, apps.a, 'TargetPath'), 'T', '00'x) || '\Utils'
24   return target_path
25</REXX>
26
27<PCK INDEX=7
28  PACKAGEID="Netlabs\FM2 Utilities\FM2Utils\1\0\0"
29  TITLE="FM/2 Utilities"
30  TARGET="=("FindFM2")"
31  SELECT
32  CREATEOBJECT="WPFolder|FM/2 Utilities|<WP_DESKTOP>|OBJECTID=<FM2_Utilities>;"
33  CREATEOBJECT="WPProgram|Make Object|<FM2_Utilities>|EXENAME=$(7)\makeobj.cmd;PARAMETERS=%*;OBJECTID=<FM2MakeObj>;"
34  CREATEOBJECT="WPProgram|Image Viewer|<FM2_Utilities>|EXENAME=$(7)\image.exe;PARAMETERS=%*;OBJECTID=<FM2Imageexe>;"
35  CREATEOBJECT="WPProgram|Reboot w/ Pause|<FM2_Utilities>|EXENAME=$(7)\rebootp.exe;PARAMETERS=%*;OBJECTID=<FM2rebootp>;"
36  CREATEOBJECT="WPProgram|Iconify|<FM2_Utilities>|EXENAME=$(7)\iconify.exe;PARAMETERS=%*;OBJECTID=<FM2Iconify>;"
37  CREATEOBJECT="WPProgram|Delete Tree|<FM2_Utilities>|EXENAME=*;PROGTYPE=WINDOWABLEVIO;PARAMETERS=/c ($(7)\deltree.exe [Enter directory to delete:] || pause);OBJECTID=<FM2Deltree>;"
38  CONFIGSYS="SET PATH=$(7); | ADDRIGHT"
39  EXECUTE="$(7)\shdwmgr FM2UTILS"
40>This package contains the FM/2 Utilities, a
41collection of more than 60  utilities which may
42be used with or without FM/2. Included are
43DELTREE, HPFSOPT, RENCASE, MOV, KILL/2,
44PTREE and many more.
45</PCK>
46
47</HEAD>
48
49<BODY>
50
51<PAGE INDEX=1 TYPE=README>
52<NEXTBUTTON TARGET=2>~Next</NEXTBUTTON>
53<TEXT>FM/2 Utilities: A short description of each utility is included at the end of the readme below. A special note of thanks to Mark Kimes for making these utilities freely available.</TEXT>
54<README EXTRACTFROMPCK="7">fm2utils.doc</README>
55</PAGE>
56
57<PAGE INDEX=2 TYPE=README>
58<NEXTBUTTON TARGET=3>~I agree</NEXTBUTTON>
59<TEXT>FM/2 Utilities: By pressing the "I agree" button, you agree to all terms and conditions of the license agreement below.</TEXT>
60<README EXTRACTFROMPCK="7">license.txt</README>
61</PAGE>
62
63<!-- The TYPE=CONTAINER will list the packages which can be installed. -->
64<PAGE INDEX=3 TYPE=CONTAINER>
65<NEXTBUTTON TARGET=4>~Next</NEXTBUTTON>
66<TEXT>Many of the programs included within FM/2 Utilities are intended to be run from the command line. If the installation directory is not already on the PATH, then this installation will ensure that your installation directory will be on the PATH after the next reboot (unless you specifiy otherwise on the next page).</TEXT>
67</PAGE>
68
69<PAGE INDEX=4 TYPE=CONFIGURE>
70<NEXTBUTTON TARGET=0>I~nstall</NEXTBUTTON>
71<TEXT>Please select/deselect the desired configuration option(s).
72
73The CONFIG.SYS modification is the addition of the FM/2 Utilities installation directory to end of the PATH (if it is not already on the PATH), simplifying access to the utiities from the command line.
74
75Uncheck "Modify CONFIG.SYS" if you do not want your PATH changed.</TEXT>
76</PAGE>
77
78</BODY>
79</WARPIN>
80
81
82<!--
83 or if you do not plan to use the utilities from the command line
84If "Modify CONFIG.SYS" remains checked and the FM/2 Utilities directory is already on the PATH it will NOT be added a second time.
85  TARGET="$(Netlabs\FM2\Base)\Utils"
86  CREATEOBJECT="WPProgram|FM/2 Utils Doc|<FM2_Utilities>|EXENAME=E.EXE;PROGTYPE=PM;PARAMETERS=$(7)\fm2utils.doc;OBJECTID=<FM2UtilsDoc>;"
87-->
88
Note: See TracBrowser for help on using the repository browser.