home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 24 DOS
/
24-DOS.zip
/
nicew35t.zip
/
INSTALL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
2000-07-25
|
1KB
|
59 lines
/* Installation for Nice-Win V 3.5T */
/* (c) Thomas Bohn, Germany */
'@Echo off'
Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
Call SysLoadFuncs
Call SysCurState Off
WINLOC=SysIni(, PM_INSTALL, WINOS2_LOCATION)
WLen=length(WINLOC)-1
WIN=left(WINLOC,WLen)
WINSYS=left(WINLOC,WLen) || "\SYSTEM"
ININEU=left(WINLOC,WLen) || "\WIN.INS"
INIBAK=left(WINLOC,WLen) || "\WIN.NIC"
NINI=left(WINLOC,WLen) || "\NICE_WIN.INI"
"del "ININEU
Call SysCls
say;
say "Installation for NICE-WIN"
say "~~~~~~~~~~~~~~~~~~~~~~~~~"
say;
say "Win-OS/2 location is: " || WINLOC
say;
say "Press any key to begin installation or Ctrl-C to cancel..."
taste=SysGetKey()
say;
say "Copying files..."
"copy BC450RTL.DLL "WINSYS
"copy WINSTART.EXE "WIN
"copy NICE-WIN.EXE "WIN
"copy NICE_WIN.DLL "WIN
ok=SysFileTree(NINI,gef,'F')
if gef.0 = 0 then "copy NICE_WIN.INI "WIN
say;
say "Make entry in WIN.INI..."
INI=left(WINLOC,WLen) || "\WIN.INI"
i=1
DO WHILE LINES(INI)<>0
list.i=LineIn(INI)
if left(list.i,4)='load' then do
UPLIST=translate(list.i)
if pos("NICE-WIN.EXE", UPLIST) = 0 then list.i = list.i || " NICE-WIN.EXE"
END
i=i+1
END
call stream INI, "C", "CLOSE"
j=1
DO WHILE j<i
ok=LineOut(ININEU,list.j)
j=j+1
END
call stream ININEU, "C", "CLOSE"
BAKDA=SysFileTree(INIBAK,gef,'F')
if gef.0 = 0 then "ren "INI" WIN.NIC"
else "del "INI
"ren "ININEU" WIN.INI"
say;
say "Installation complete, press any key..."
taste=SysGetKey()