home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: SysTools
/
SysTools.zip
/
instcn32.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-04-19
|
4KB
|
110 lines
/*----------------------------------------------------------------------------*/
/* INSTCNFG.CMD - ICPAUSA Software Installation Program */
/* */
/* This program will also create the OS/2 desktop icons needed to run ICPAUSA */
/* */
/* Note: REXX must be installed on the OS/2 system for this program to run. */
/* */
/* (c) Copyright International Business Machines Corp., 1993, 1994 */
/*----------------------------------------------------------------------------*/
/* Registering System RexxUtil Functions. */
if rxFuncQuery('SysLoadFuncs') = 1 then do /* Need to reg. REXXUTIL? */
say 'Installing System Functions '
call RxFuncAdd 'SysLoadFuncs','RexxUtil','SysLoadFuncs'
call SysLoadFuncs
say 'RexxUtil loaded.'
end
Call SysCls
Say
Say CENTER('IIIIIIII CCCCC PPPPP A U U SSSSS A ',78)
Say CENTER(' II C C P P A A U U S S A A ',78)
Say CENTER(' II C P P A A U U S A A ',78)
Say CENTER(' II C PPPPP AAAAAAA U U SSSSS AAAAAAA',78)
Say CENTER(' II C C P A A U U S A A',78)
Say CENTER(' II C C P A A U U S S A A',78)
Say CENTER('IIIIIIII CCCCC P A A UUUUU SSSSS A A',78)
Say
Say CENTER('ICPAUSA Installation Program Ver 1.2',78)
Say COPIES('-',78)
Say
Say CENTER('This program will unpack the files needed for ICPAUSA.',78)
Say CENTER('and optionally create the OS/2 Desktop icons needed also.',78)
Say
Say CENTER('Press Enter to continue or "Q" & Enter to quit',78)
Parse Upper Pull response .
If LEFT(response,1) = 'Q' Then Signal Endit
/* Issue commands to unpack */
ICPADLR1 "-o"
ICPADLR2 "-o"
Say CENTER('Create the OS/2 Desktop icons?',78)
Say CENTER('Press Enter to continue or "Q" & Enter to quit',78)
Parse Upper Pull response .
If LEFT(response,1) = 'Q' Then Signal Endit
Parse Source . . install_program_filespec
install_pgm_path = FILESPEC('D',install_program_filespec)FILESPEC('P',install_program_filespec)
Say
Say
Say 'Creating Configurator icons...'
/* Configurator Folder */
retry = 0
If \SysCreateObject('WPFolder','Configurators','<WP_DESKTOP>','OBJECTID=<Configurators>') Then Do
Do retry = 1 to 10
If SysCreateObject('WPFolder','Configurators:'retry,'<WP_DESKTOP>','OBJECTID=<Configurators'retry'>') Then
Leave
End
If retry = 11 Then Do
Say '**** ERROR: Unable to create Configurators folder.'
Exit
End
End
If retry = 0 Then Do
Say '--> Configurators folder created.'
location = '<Configurators>'
End
Else Do
Say '--> Configurators:'retry 'folder created.'
location = '<Configurators'retry'>'
End
/* ICPAUSA File */
Do retry = 1 to 10
setup = 'OBJECTID=<ICPA32'retry'>;EXENAME='install_pgm_path'\ICPA32.EXE;STARTUPDIR='install_pgm_path';PARAMETERS=-a'
If SysCreateObject('WPProgram','ICPA32',location,setup) Then Do
Say '--> ICPA32 icon created.'
Leave
End
End
/* AASFIX File */
Do retry = 1 to 10
setup = 'OBJECTID=<AASVER'retry'>;EXENAME='install_pgm_path'\AASVER.CMD;STARTUPDIR='install_pgm_path
If SysCreateObject('WPProgram','AASVER',location,setup) Then Do
Say '--> AASVER icon created.'
Leave
End
End
If retry = 11 Then
Say '**** ERROR: Unable to create ICPAUSA icons.'
Say
Say 'ICPAUSA installation program completed.'
Endit:
Say CENTER('Erase the packed files from your hard disk?',78)
Say CENTER('Press Enter to continue or "Q" & Enter to quit',78)
Parse Upper Pull response .
If LEFT(response,1) = 'Q' Then Exit
del icpadlr1.exe
del icpadlr2.exe
Exit