Changeset 253
- Timestamp:
- Aug 16, 2005, 5:21:40 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/install.cmd (modified) (46 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/install.cmd
r234 r253 1 /**************************************************************************** 2 * FM/2 installation program * 3 * * 4 * This program creates folders to hold program and data objects, * 5 * then creates program objects for each executable. It only needs to be * 6 * run once (unless you move the FM/2 directory -- see say notes at end). * 7 * Run this program in the FM/2 directory (where you unpacked the archive). * 8 * * 9 * Note that if you place the FM/2 Utilities package into a directory named * 10 * UTILS off of the FM/2 directory, this install program will create some * 11 * objects for you for some of those programs. * 12 * * 13 * For unattended installation, call with /UNATTENDED as the first * 14 * argument. * 15 * * 16 * To avoid any WPS associations being set, use the /NOASSOC argument. * 17 * * 18 * For usage help, run as INSTALL /? * 19 * * 20 * $Id$ * 21 ****************************************************************************/ 1 /* install - FM/2 installation program 2 $Id$ 3 4 Copyright (c) 1993, 1998 M. Kimes 5 Copyright (c) 2002, 2005 Steven Levine and Associates, Inc. 6 All rights reserved. 7 8 This program is free software licensed under the terms of the GNU 9 General Public License. The GPL Software License can be found in 10 gnugpl2.txt or at http://www.gnu.org/licenses/licenses.html#GPL 11 12 08 Aug 05 SHL Add JFSOPT support 13 16 Aug 05 SHL Ensure folder icon gets updated 14 15 */ 22 16 23 17 /* Identify ourself */ … … 30 24 say' ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ' 31 25 26 /* check arguments and adjust as required */ 27 32 28 assocfilter = ';ASSOCFILTER=*.ZIP,*.ARC,*.LZH,*.ARJ,*.ZOO,*.MO0,READ.ME,README,README.1ST,README.OS2,REGISTER.TXT' 33 34 /* check arguments and adjust as required */ 35 36 parse upper arg dummy1 dummy2 37 if dummy1 = '/NOASSOC' then assocfilter = '' 38 if dummy2 = '/NOASSOC' then assocfilter = '' 29 attended = 1 30 31 parse upper arg tail 32 do while tail \= '' 33 parse var tail curarg tail 34 curarg = strip(curarg) 35 /* if user asked for usage help, give it */ 36 if curarg = '/?' then do 37 say '' 38 say 'Usage: INSTALL [/NOASSOC] [/UNATTENDED]' 39 say '' 40 say ' /NOASSOC don''t set any WPS associations for FM/2 programs.' 41 say ' /UNATTENDED don''t ask any questions; run without stopping.' 42 say '' 43 say 'Examples:' 44 say ' INSTALL' 45 say ' INSTALL /NOASSOC' 46 say ' INSTALL /UNATTENDED' 47 say ' INSTALL /NOASSOC /UNATTENDED' 48 exit 49 end 50 if curarg = '/NOASSOC' then assocfilter = '' 51 if curarg = '/UNATTENDED' then attended = 0 52 end 53 39 54 if assocfilter = '' then say ' /NOASSOC = TRUE' 40 41 if dummy1 = '/UNATTENDED' then unattended = '' 42 if dummy2 = '/UNATTENDED' then unattended = '' 43 if unattended = '' then say ' /UNATTENDED = TRUE' 44 45 /* if user asked for usage help, give it */ 46 47 if dummy1 = '/?' | dummy2 = '/?' then 48 do 49 say '' 50 say 'Usage: INSTALL [/NOASSOC] [/UNATTENDED]' 51 say '' 52 say ' /NOASSOC don''t set any WPS associations for FM/2 programs.' 53 say ' /UNATTENDED don''t ask any questions; run without stopping.' 54 say '' 55 say 'Examples:' 56 say ' INSTALL' 57 say ' INSTALL /NOASSOC' 58 say ' INSTALL /UNATTENDED' 59 say ' INSTALL /NOASSOC /UNATTENDED' 60 exit 61 end 55 if attended = 0 then say ' /UNATTENDED = TRUE' 62 56 63 57 /* see if we might be in the right directory... */ … … 84 78 /* give user a chance to hit CTRL-C */ 85 79 86 if unattended = 'UNATTENDED' then 87 do 80 if attended then do 88 81 call charout ,' Press [Enter] to continue...' 89 dummy= ''90 do until dummy= '0d'x91 dummy= SysGetKey('NOECHO')82 ans = '' 83 do until ans = '0d'x 84 ans = SysGetKey('NOECHO') 92 85 end 93 86 call charout ,'0d1b'x'[K' … … 102 95 say "Creating File Manager/2 folders and objects..." 103 96 104 /* first, create FM/2 folder*/97 /* first, try to create FM/2 folder, fail if exists */ 105 98 106 99 title = "File Manager/2" … … 113 106 if rc \= '' then setup = setup'ICONNFILE=1,'rc';' 114 107 setup = setup'OBJECTID=<FM3_Folder>' 115 result = SysCreateObject(classname,title,location,setup,f) 108 109 created = SysCreateObject(classname,title,location,setup,'f') 110 111 if attended then do 112 if \ created then do 113 say 114 say 'The File Manager/2 folder already exists.' 115 call charout ,"Should I update the objects (it's painless)? (Y/N) " 116 ans = '' 117 do forever 118 ans = SysGetKey('NOECHO') 119 parse upper var ans ans 120 if ans = '1b'x then ans = 'N' 121 if ans = '0d'x then ans = 'Y' 122 if ans = 'N' then leave 123 if ans = 'Y' then leave 124 call beep 262,10 125 end 126 call charout ,ans 127 say 128 if ans = 'N' then exit 129 end 130 end 131 else do 132 /* Unattended */ 133 if \ created then 134 say 'Updating objects.' 135 end 136 137 if \ created then do 138 /* Ensure icons get updated */ 139 call SysCreateObject classname,title,location,setup,'u' 140 /* Suppress assoc filter updates */ 141 assocfilter = '' 142 end 143 116 144 'DEL FM2FLDR.ICO 1>NUL 2>NUL' 117 145 'DEL FM2FLDR2.ICO 1>NUL 2>NUL' 118 146 119 if unattended = 'UNATTENDED' then 120 do 121 if result = 0 then 122 do 123 assocfilter = '' 124 existed = '' 125 say '' 126 say 'The File Manager/2 folder already exists.' 127 call charout ,"Should I update the objects (it's painless)? (Y/N) " 128 dummy = '' 129 do forever 130 dummy = SysGetKey('NOECHO') 131 parse upper var dummy dummy 132 if dummy = '1b'x then dummy = 'N' 133 if dummy = '0d'x then dummy = 'Y' 134 if dummy = 'N' then leave 135 if dummy = 'Y' then leave 136 call beep 262,10 137 end 138 call charout ,dummy 139 say '' 140 if dummy = 'N' then exit 141 end 142 end 143 else 144 do 145 if result = 0 then 146 do 147 assocfilter = '' 148 existed = '' 149 say 'Updating objects.' 150 end 151 end 152 153 /* create objects in appropriate folders */ 147 /* create objects in appropriate folders, retain settings if folder not created */ 154 148 155 149 rc = stream('fm3.exe','c','query exists') … … 160 154 location = '<FM3_Folder>' 161 155 setup = 'EXENAME='rc';STARTUPDIR='curdir 162 if existed = 'EXISTED'then setup = setup';PARAMETERS=%*'156 if created then setup = setup';PARAMETERS=%*' 163 157 setup = setup';OBJECTID=<FM/2>' 164 call SysCreateObject classname,title,location,setup, u158 call SysCreateObject classname,title,location,setup,'u' 165 159 end 166 160 … … 172 166 location = '<FM3_Folder>' 173 167 setup = 'EXENAME='rc';STARTUPDIR='curdir 174 if existed = 'EXISTED'then setup = setup';PARAMETERS=%*'168 if created then setup = setup';PARAMETERS=%*' 175 169 setup = setup';OBJECTID=<FM/2 LITE>' 176 call SysCreateObject classname,title,location,setup, u170 call SysCreateObject classname,title,location,setup,'u' 177 171 end 178 172 … … 187 181 if rc \= '' then setup = setup'ICONNFILE=1,'rc';' 188 182 setup = setup'OBJECTID=<FM3_Tools>' 189 result = SysCreateObject(classname,title,location,setup, u)183 result = SysCreateObject(classname,title,location,setup,'u') 190 184 'DEL TOOLBOX.ICO 1>NUL 2>NUL' 191 185 'DEL TOOLBOX2.ICO 1>NUL 2>NUL' … … 201 195 if rc \= '' then setup = setup'ICONNFILE=1,'rc';' 202 196 setup = setup'OBJECTID=<FM3_Docs>' 203 result = SysCreateObject(classname,title,location,setup, u)197 result = SysCreateObject(classname,title,location,setup,'u') 204 198 'DEL DOCS.ICO 1>NUL 2>NUL' 205 199 'DEL DOCS2.ICO 1>NUL 2>NUL' … … 212 206 location = '<FM3_Tools>' 213 207 setup = 'EXENAME='rc';STARTUPDIR='curdir''assocfilter 214 if existed = 'EXISTED'then setup = setup';PARAMETERS=%*'208 if created then setup = setup';PARAMETERS=%*' 215 209 setup = setup';OBJECTID=<FM/2_AV/2>' 216 call SysCreateObject classname,title,location,setup, u210 call SysCreateObject classname,title,location,setup,'u' 217 211 end 218 212 … … 224 218 location = '<FM3_Tools>' 225 219 setup = 'EXENAME='rc';STARTUPDIR='curdir 226 if existed = 'EXISTED'then setup = setup';PARAMETERS=%*'220 if created then setup = setup';PARAMETERS=%*' 227 221 setup = setup';OBJECTID=<FM/2_EAVIEW>' 228 call SysCreateObject classname,title,location,setup, u222 call SysCreateObject classname,title,location,setup,'u' 229 223 end 230 224 … … 237 231 location = '<FM3_Tools>' 238 232 setup = 'EXENAME='rc';STARTUPDIR='curdir 239 if existed = 'EXISTED'then setup = setup';PARAMETERS=%*'233 if created then setup = setup';PARAMETERS=%*' 240 234 setup = setup';OBJECTID=<FM/2_IMAGEVIEW>' 241 call SysCreateObject classname,title,location,setup, u235 call SysCreateObject classname,title,location,setup,'u' 242 236 end 243 237 … … 249 243 location = '<FM3_Tools>' 250 244 setup = 'EXENAME='rc';STARTUPDIR='curdir 251 if existed = 'EXISTED'then setup = setup';PARAMETERS=%*'245 if created then setup = setup';PARAMETERS=%*' 252 246 setup = setup';OBJECTID=<FM/2_DIRSIZE>' 253 call SysCreateObject classname,title,location,setup, u247 call SysCreateObject classname,title,location,setup,'u' 254 248 end 255 249 … … 262 256 location = '<FM3_Tools>' 263 257 setup = 'EXENAME='rc';STARTUPDIR='curdir''assocfilter 264 if existed = 'EXISTED'then setup = setup';PARAMETERS=%*'258 if created then setup = setup';PARAMETERS=%*' 265 259 setup = setup';OBJECTID=<FM/2_INIVIEW>' 266 call SysCreateObject classname,title,location,setup, u260 call SysCreateObject classname,title,location,setup,'u' 267 261 end 268 262 … … 274 268 location = '<FM3_Tools>' 275 269 setup = 'EXENAME='rc';STARTUPDIR='curdir';OBJECTID=<FM/2_BOOKSHELF>' 276 call SysCreateObject classname,title,location,setup, u270 call SysCreateObject classname,title,location,setup,'u' 277 271 title = "Helpfile Viewer" 278 272 classname = 'WPProgram' 279 273 location = '<FM3_Tools>' 280 274 setup = 'EXENAME='rc';PARAMETERS=DUMMY;STARTUPDIR='curdir 281 call SysCreateObject classname,title,location,setup, u275 call SysCreateObject classname,title,location,setup,'u' 282 276 end 283 277 … … 289 283 location = '<FM3_Tools>' 290 284 setup = 'EXENAME='rc';PARAMETERS=%;STARTUPDIR='curdir';OBJECTID=<FM/2_KILLPROC>' 291 call SysCreateObject classname,title,location,setup, u285 call SysCreateObject classname,title,location,setup,'u' 292 286 end 293 287 … … 299 293 location = '<FM3_Tools>' 300 294 setup = 'EXENAME='rc';STARTUPDIR='curdir';OBJECTID=<FM/2_UNDEL>' 301 if existed = 'EXISTED'then setup = setup';PARAMETERS=%*'302 call SysCreateObject classname,title,location,setup, u295 if created then setup = setup';PARAMETERS=%*' 296 call SysCreateObject classname,title,location,setup,'u' 303 297 end 304 298 … … 310 304 location = '<FM3_Tools>' 311 305 setup = 'EXENAME='rc';STARTUPDIR='curdir';OBJECTID=<FM/2_VTREE>' 312 call SysCreateObject classname,title,location,setup, u306 call SysCreateObject classname,title,location,setup,'u' 313 307 end 314 308 … … 320 314 location = '<FM3_Tools>' 321 315 setup = 'EXENAME='rc';STARTUPDIR='curdir';OBJECTID=<FM/2_VDIR>' 322 if existed = 'EXISTED'then setup = setup';PARAMETERS=%*'323 call SysCreateObject classname,title,location,setup, u316 if created then setup = setup';PARAMETERS=%*' 317 call SysCreateObject classname,title,location,setup,'u' 324 318 end 325 319 … … 331 325 location = '<FM3_Tools>' 332 326 setup = 'EXENAME='rc';STARTUPDIR='curdir';OBJECTID=<FM/2_VCOLLECT>' 333 call SysCreateObject classname,title,location,setup, u327 call SysCreateObject classname,title,location,setup,'u' 334 328 title = "Seek and scan" 335 329 classname = 'WPProgram' 336 330 location = '<FM3_Tools>' 337 331 setup = 'EXENAME='rc';PARAMETERS=**;STARTUPDIR='curdir';OBJECTID=<FM/2_VSEEK>' 338 call SysCreateObject classname,title,location,setup, u332 call SysCreateObject classname,title,location,setup,'u' 339 333 end 340 334 … … 346 340 location = '<FM3_Tools>' 347 341 setup = 'EXENAME='rc';STARTUPDIR='curdir';OBJECTID=<FM/2_SEEALL>' 348 call SysCreateObject classname,title,location,setup, u342 call SysCreateObject classname,title,location,setup,'u' 349 343 end 350 344 … … 356 350 location = '<FM3_Tools>' 357 351 setup = 'EXENAME='rc';STARTUPDIR='curdir';OBJECTID=<FM/2_DATABAR>' 358 call SysCreateObject classname,title,location,setup, u352 call SysCreateObject classname,title,location,setup,'u' 359 353 end 360 354 … … 367 361 location = '<FM3_Tools>' 368 362 setup = 'EXENAME='rc';STARTUPDIR='curdir';OBJECTID=<FM/2_SYSINFO>' 369 call SysCreateObject classname,title,location,setup, u363 call SysCreateObject classname,title,location,setup,'u' 370 364 end 371 365 */ … … 383 377 location = '<FM3_Tools>' 384 378 setup = 'EXENAME='rc';OBJECTID=<FM/2_FM2PLAY>;PARAMETERS=/! %*' 385 call SysCreateObject classname,title,location,setup, u379 call SysCreateObject classname,title,location,setup,'u' 386 380 end 387 381 … … 394 388 location = '<FM3_Tools>' 395 389 setup = 'EXENAME='rc';STARTUPDIR='curdir 396 if existed = 'EXISTED'then setup = setup';PARAMETERS=%*'390 if created then setup = setup';PARAMETERS=%*' 397 391 setup = setup';OBJECTID=<FM/2_MAKEARC>' 398 call SysCreateObject classname,title,location,setup, u392 call SysCreateObject classname,title,location,setup,'u' 399 393 end 400 394 … … 406 400 location = '<FM3_Docs>' 407 401 setup = 'SHADOWID='rc 408 call SysCreateObject classname,title,location,setup, u402 call SysCreateObject classname,title,location,setup,'u' 409 403 end 410 404 … … 416 410 location = '<FM3_Docs>' 417 411 setup = 'EXENAME='VIEW.EXE';STARTUPDIR='curdir';PARAMETERS='curdir'\FM3.HLP' 418 call SysCreateObject classname,title,location,setup, u412 call SysCreateObject classname,title,location,setup,'u' 419 413 end 420 414 … … 426 420 location = '<FM3_Tools>' 427 421 setup = 'EXENAME='rc';PARAMETERS=%*' 428 call SysCreateObject classname,title,location,setup, u422 call SysCreateObject classname,title,location,setup,'u' 429 423 end 430 424 … … 436 430 location = '<FM3_Docs>' 437 431 setup = 'SHADOWID='rc 438 call SysCreateObject classname,title,location,setup, u432 call SysCreateObject classname,title,location,setup,'u' 439 433 end 440 434 … … 554 548 if rc \= '' then 555 549 do 556 rc = stream('SORT.TMP','c','query exists')557 if rc \= '' then558 do559 rc = stream('SELECT.TMP','c','query exists')560 if rc \= '' then561 do562 say 'Creating a sample QUICKTLS.DAT file and toolboxes for you.'563 'REN QUICKTLS.TMP QUICKTLS.DAT 1>NUL 2>NUL'564 'REN CMDS.TMP CMDS.TLS 1>NUL 2>NUL'565 'REN UTILS.TMP UTILS.TLS 1>NUL 2>NUL'566 'REN SORT.TMP SORT.TLS 1>NUL 2>NUL'567 'REN SELECT.TMP SELECT.TLS 1>NUL 2>NUL'568 end569 end550 rc = stream('SORT.TMP','c','query exists') 551 if rc \= '' then 552 do 553 rc = stream('SELECT.TMP','c','query exists') 554 if rc \= '' then 555 do 556 say 'Creating a sample QUICKTLS.DAT file and toolboxes for you.' 557 'REN QUICKTLS.TMP QUICKTLS.DAT 1>NUL 2>NUL' 558 'REN CMDS.TMP CMDS.TLS 1>NUL 2>NUL' 559 'REN UTILS.TMP UTILS.TLS 1>NUL 2>NUL' 560 'REN SORT.TMP SORT.TLS 1>NUL 2>NUL' 561 'REN SELECT.TMP SELECT.TLS 1>NUL 2>NUL' 562 end 563 end 570 564 end 571 565 end … … 585 579 586 580 'del SETENV.CMD 1>NUL 2>NUL' 587 dummy= stream('SETENV.CMD','C','open')588 if dummy= 'READY:' then581 rc = stream('SETENV.CMD','C','open') 582 if rc = 'READY:' then 589 583 do 590 584 call lineout 'SETENV.CMD','@ECHO OFF' … … 615 609 */ 616 610 617 618 611 rc = stream('SETENV.CMD','c','query exists') 619 612 if rc \= '' then 620 613 do 621 dummy= value('COMSPEC',,'OS2ENVIRONMENT')622 if dummy = '' then dummy= value('OS2_SHELL',,'OS2ENVIRONMENT')623 if dummy = '' then dummy= 'CMD.EXE'614 shell = value('COMSPEC',,'OS2ENVIRONMENT') 615 if shell = '' then shell = value('OS2_SHELL',,'OS2ENVIRONMENT') 616 if shell = '' then shell = 'CMD.EXE' 624 617 title = "FM/2 Utilities command line" 625 618 classname = 'WPProgram' 626 619 location = '<FM3_Tools>' 627 setup = 'EXENAME=' dummy';PARAMETERS=/K 'rc';STARTUPDIR=C:\'628 call SysCreateObject classname,title,location,setup, u620 setup = 'EXENAME='shell';PARAMETERS=/K 'rc';STARTUPDIR=C:\' 621 call SysCreateObject classname,title,location,setup,'u' 629 622 end 630 623 631 624 call SysMkDir curdir'\UTILS' 632 dummy = directory(curdir'\UTILS') 633 if dummy = curdir'\UTILS' then 625 if directory(curdir'\UTILS') \= curdir'\UTILS' then 626 say "Couldn't switch to "curdir"\utils" 627 else 634 628 do 635 629 'set PATH=%PATH%;'curdir'\utils' 636 630 'move ..\example.cmd 1>NUL 2>NUL' 637 631 'del FM2.CMD 1>NUL 2>NUL' 638 dummy= stream('FM2.CMD','C','open')639 if dummy= 'READY:' then632 rc = stream('FM2.CMD','C','open') 633 if rc = 'READY:' then 640 634 do 641 635 say 'Creating an FM2.CMD file.' … … 769 763 call stream 'FM2.CMD','C','close' 770 764 'del AV2.CMD 1>NUL 2>NUL' 771 dummy= stream('AV2.CMD','C','open')772 if dummy= 'READY:' then765 rc = stream('AV2.CMD','C','open') 766 if rc = 'READY:' then 773 767 do 774 768 say 'Creating an AV2.CMD file.' … … 785 779 else say "Couldn't create AV2.CMD file." 786 780 'del VDIR.CMD 1>NUL 2>NUL' 787 dummy= stream('VDIR.CMD','C','open')788 if dummy= 'READY:' then781 rc = stream('VDIR.CMD','C','open') 782 if rc = 'READY:' then 789 783 do 790 784 say 'Creating a VDIR.CMD file.' … … 816 810 else say "Couldn't create VDIR.CMD file." 817 811 'del VTREE.CMD 1>NUL 2>NUL' 818 dummy= stream('VTREE.CMD','C','open')819 if dummy= 'READY:' then812 rc = stream('VTREE.CMD','C','open') 813 if rc = 'READY:' then 820 814 do 821 815 say 'Creating a VTREE.CMD file.' … … 831 825 else say "Couldn't create VTREE.CMD file." 832 826 'del VCOLLECT.CMD 1>NUL 2>NUL' 833 dummy= stream('VCOLLECT.CMD','C','open')834 if dummy= 'READY:' then827 rc = stream('VCOLLECT.CMD','C','open') 828 if rc = 'READY:' then 835 829 do 836 830 say 'Creating a VCOLLECT.CMD file.' … … 910 904 else say "Couldn't create VCOLLECT.CMD file." 911 905 'del INI.CMD 1>NUL 2>NUL' 912 dummy= stream('INI.CMD','C','open')913 if dummy= 'READY:' then906 rc = stream('INI.CMD','C','open') 907 if rc = 'READY:' then 914 908 do 915 909 say 'Creating an INI.CMD file.' … … 927 921 else say "Couldn't create INI.CMD file." 928 922 'del EAS.CMD 1>NUL 2>NUL' 929 dummy= stream('EAS.CMD','C','open')930 if dummy= 'READY:' then923 rc = stream('EAS.CMD','C','open') 924 if rc = 'READY:' then 931 925 do 932 926 say 'Creating an EAS.CMD file.' … … 1007 1001 else say "Couldn't create EAS.CMD file." 1008 1002 'del DIRSIZE.CMD 1>NUL 2>NUL' 1009 dummy= stream('DIRSIZE.CMD','C','open')1010 if dummy= 'READY:' then1003 rc = stream('DIRSIZE.CMD','C','open') 1004 if rc = 'READY:' then 1011 1005 do 1012 1006 say 'Creating a DIRSIZE.CMD file.' … … 1038 1032 else say "Couldn't create DIRSIZE.CMD file." 1039 1033 'del UNDEL.CMD 1>NUL 2>NUL' 1040 dummy= stream('UNDEL.CMD','C','open')1041 if dummy= 'READY:' then1034 rc = stream('UNDEL.CMD','C','open') 1035 if rc = 'READY:' then 1042 1036 do 1043 1037 say 'Creating an UNDEL.CMD file.' … … 1053 1047 else say "Couldn't create UNDEL.CMD file." 1054 1048 'del KILLPROC.CMD 1>NUL 2>NUL' 1055 dummy= stream('KILLPROC.CMD','C','open')1056 if dummy= 'READY:' then1049 rc = stream('KILLPROC.CMD','C','open') 1050 if rc = 'READY:' then 1057 1051 do 1058 1052 say 'Creating a KILLPROC.CMD file.' … … 1068 1062 else say "Couldn't create KILLPROC.CMD file." 1069 1063 'del VIEWINFS.CMD 1>NUL 2>NUL' 1070 dummy= stream('VIEWINFS.CMD','C','open')1071 if dummy= 'READY:' then1064 rc = stream('VIEWINFS.CMD','C','open') 1065 if rc = 'READY:' then 1072 1066 do 1073 1067 say 'Creating a VIEWINFS.CMD file.' … … 1083 1077 else say "Couldn't create VIEWINFS.CMD file." 1084 1078 'del VIEWHELP.CMD 1>NUL 2>NUL' 1085 dummy= stream('VIEWHELP.CMD','C','open')1086 if dummy= 'READY:' then1079 rc = stream('VIEWHELP.CMD','C','open') 1080 if rc = 'READY:' then 1087 1081 do 1088 1082 say 'Creating a VIEWHELP.CMD file.' … … 1098 1092 else say "Couldn't create VIEWHELP.CMD file." 1099 1093 'del GLOBAL.CMD 1>NUL 2>NUL' 1100 dummy= stream('GLOBAL.CMD','C','open')1101 if dummy= 'READY:' then1094 rc = stream('GLOBAL.CMD','C','open') 1095 if rc = 'READY:' then 1102 1096 do 1103 1097 say 'Creating a GLOBAL.CMD file.' … … 1180 1174 end 1181 1175 else say "Couldn't create FM2.CMD file. Panic." 1182 dummy = directory(curdir) 1183 end 1184 else say "Couldn't switch to "curdir"\utils" 1176 call directory curdir 1177 end 1185 1178 1186 1179 /* type the install.dat file to show any critical info/notices */ … … 1191 1184 'type install.dat' 1192 1185 'DEL INSTALL.DAT 1>NUL 2>NUL' 1193 if unattended = 'UNATTENDED'then1186 if attended then 1194 1187 do 1195 1188 call charout ,' Press [Enter] to continue...' 1196 dummy= ''1197 do until dummy= '0d'x1198 dummy= SysGetKey('NOECHO')1189 ans = '' 1190 do until ans = '0d'x 1191 ans = SysGetKey('NOECHO') 1199 1192 end 1200 1193 call charout ,'0d1b'x'[K'
Note:
See TracChangeset
for help on using the changeset viewer.
