home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: OtherApp
/
OtherApp.zip
/
stwtv113.zip
/
Install.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-11-13
|
2KB
|
63 lines
/* ReXX Utility To Install StWTV */
call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs"
call SysLoadFuncs
/* Get current directory */
CDir=Directory()
/* Get location of StWTV.INI */
IniLoc=SysIni('USER','StM Applications','StWTV.INI')
If IniLoc="ERROR:" Then
Do
IniLoc=CDir'\StWTV.INI'
Call SysIni 'USER',"StM Applications","StWTV.INI",IniLoc
End
/* Prompt user and ask for language */
Say "This will install StWTV on your system"
Say "Please enter language code."
Say "DE for german"
Say "EN for english"
Say "REMOVE for deinstallation"
Say "All other codes will default to english"
parse pull Lang
if Length(Lang)>1 Then
Do
if Lang='REMOVE' Then
Do
Lang=''
I=SysIni('USER','StM Applications','StWTV.INI','DELETE:')
I=SysIni('USER','StM Applications','StWTVLanguage','DELETE:')
Say "The entry in OS2.INI was removed"
Exit
End
End
if Length(Lang)>1 Then
Do
Say "Please enter name of your TV-Card (default: 'wcast')"
parse pull CardName
If Length(CardName)<1 Then
Do
CardName='wcast'
End
Say "Enter number of card (default: '1')"
parse pull CardNumber
If Length(CardNumber)<1 Then
Do
CardNumber=1
End
C='0'CardNumber*1000000
C=X2C(C)
Call SysIni IniLoc,"CardConfiguration","DeviceName",CardName
Call SysIni IniLoc,"CardConfiguration","CardNumber",C
Call SysIni IniLoc,"CardConfiguration","Connector",X2C('02000000')
Call SysIni 'USER',"StM Applications","StWTVLanguage",Lang
'If Exist 'CDir'\StWTV*.HLP DEL 'CDir'\StWTV*.HLP'
'Call StWTV /RUNSIC:Script\Install.STS'
Call SysCls
Say "The programm was successfully installed."
End
If Length(Lang)<1 Then
Do
'view StWTV_EN.INF Installation'
End