home *** CD-ROM | disk | FTP | other *** search
- /***********************************************************************
- @ECHO OFF
- ECHO OS/2 Procedures Language 2/REXX not installed.
- ECHO Run Selective Installation from the Setup Folder to
- ECHO install REXX support.
- pause
- exit
- ***********************************************************************
- * INSTDBUG *
- * *
- * Purpose: To call the debug install utility DBUGINST with the *
- * the correct command line: *
- * *
- * d:\os2tkt20\debug\dbuginst /Sd:\os2tk20\debug x *
- * *
- * Arguments: The instalation drive and directory. *
- ***********************************************************************
- * (C) Copyright IBM Corporation 1992 *
- ***********************************************************************/
- parse arg CDr .
- trace 'o'
-
- call Initialize
-
- if RxCaDD.OpType = 'REMOVE'
- then do
- call 'MessageBox' Ctl.!ProgName, 'Remove is not supported. Add the application',
- 'again to recreate the program object.'
- call 'CaDDExit'
- exit 0
- end /* Do */
-
-
- call UseDbugInst
-
- call 'CaddComplete' InstallRC
- call 'CaddExit'
- exit 0
-
-
- UseDbugInst:
- /**************************************************
- * Call the dbuginstall program with the appropriate parameters
- **************************************************/
-
- CurDir = directory()
- call directory CDr'os2tk20\debug'
- '@dbuginst ' '/S'CDr'os2tk20\debug' BDrl
- InstallRC = RC
- call directory CurDir
- if InstallRC <> 0 then
- do
- if InstallRC = 3 then
- call 'MessageBox' 'Kernel Mismatch', 'No Kernel Debugger available for the installed level of OS/2. Unable to install the Kernel Debugger.'
- else
-
- call 'CaddComplete' InstallRC
-
- call 'CaddExit'
- exit InstallRC
- end
- return
-
- Initialize:
- /*******************************************************************/
- /* Load required REXXUTIL (part of 2.0) utilites and the required */
- /* RXUTILS (part of CORE and avail on OS2TOOLS) utilites */
- /* figure out which drive is the boot drive */
- /*******************************************************************/
- CurDir = directory()
- call directory CDr'INSTALL'
- call Rxfuncadd 'CADDINIT', 'RXCADD', 'CADDINIT'
- signal on syntax
- ver = 'CAddInit'()
- signal off syntax
- if abbrev(ver, 'ERROR:')
- then call syntax
- call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
- call SysLoadFuncs
- /************************************************
- * Find Boot Drive letter for OS2. *
- ************************************************/
- Path = value('PATH',,'OS2ENVIRONMENT')
- parse upper var Path BDrl'\OS2;'.
- BDrl = left(BDrl,1)
- return
-
-
-
-
-
-