home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Thinkpad Essentials 1997
/
cd1may97.iso
/
confpos2
/
confinst.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-03-18
|
3KB
|
111 lines
/********************************************************************
PCCINST.CMD
Installation of IBM PC Configurator in OS/2
(C) Copyright IBM Corporation 1997.
All Rights Reserved.
Created 1/5/97 Updated 3/18/97
********************************************************************/
/* **************************
** INITIALIZE PROGRAM
** **************************/
call rxfuncadd sysloadfuncs, rexxutil, sysloadfuncs
call 'sysloadfuncs'
configpath = 'unknown'
drive = 'c'
/* **************************
** User Options
** **************************/
SAY " "
SAY "Please type the number of your choice: "
SAY " 1) Install IBM ConfigPro Lite and create an icon on the OS/2 Desktop "
SAY " 2) Create an IBM ConfigPro Lite icon on OS/2 Desktop only "
SAY " (assumes application code is already installed on your system) "
SAY " 3) Cancel the installation "
SAY " "
PULL sel
SAY " "
/* **************************
** Install SBWin
** **************************/
IF sel = '1' THEN
DO
address cmd 'SETUP.EXE'
SAY "IBM ConfigPro Lite was installed successfully... "
SAY " "
END
/* **************************
** Determine Path
** **************************/
IF sel = '1' | sel = '2' THEN
DO
SAY " "
SAY "Please specify the drive letter where the configurator was installed: (c)"
PULL drive
drive = SUBSTR(drive,1,1)
SAY " "
call SysFileTree drive||':\sbw.exe', 'sbwdir', 'FS'
DO i=1 to sbwdir.0
sbwpath = SUBSTR(sbwdir.i,38)
l = length(sbwpath)
sbwpath1 = left(sbwpath,l-11)
SAY sbwpath1
SAY "Is the above path correct for the configurator? (y/n) "
PULL answer
SAY " "
IF answer <> 'N' THEN
DO
configpath = sbwpath1
LEAVE
END
END
IF configpath = 'unknown' THEN
DO
SAY "The configurator was not found and the icon was not created... "
SAY " "
EXIT
END
SAY " "
SAY "The configurator path selected is: "||configpath
SAY " "
/* **************************
** Create Configurator Icon
** **************************/
call SysDestroyObject('<PCCONFIG_CMD>')
ClassName='WPProgram'
Title='IBM ConfigPro Lite 1.0'
Location='<WP_DESKTOP>'
progtype='PROGTYPE=WIN;'
maxwindow='MAXIMIZED=YES;NoMove=NO;'
CloseAtEnd='NOAUTOCLOSE=YES;'
exeid='exename='||configpath||'sbw\sbw.exe;'
/* parameter='PARAMETERS= -D '||configpath||'model\;' */
workdir='STARTUPDIR='||configpath||'sbw\;'
object='OBJECTID=<PCCONFIG_CMD>;'
setup=object||exeid||parameter||workdir||progtype||maxwindow||CloseAtEnd
rc=SysCreateObject(ClassName, Title, Location, Setup, 'F')
IF rc <> 1 THEN SAY rc||' The Configurator icon was not created.........'
SAY "IBM ConfigPro Lite Icon was created successfully... "
SAY " "
END
EXIT