home *** CD-ROM | disk | FTP | other *** search
- /***********************************************************************/
- /* CUSTEPM Installation Tool */
- /* */
- /* Handles all installation tasks for CUSTEPM. Locked files are not */
- /* handled. */
- /* */
- /***********************************************************************/
- /* (C) Copyright IBM Corporation 1994 */
- /***********************************************************************/
-
- parse upper arg BDr CDr .
- trace 'o'
-
- call Initialize
-
- 'cls'
- say
- say '┌────────────────────────────────────────────────────────────────────────────┐'
- say '│ The Developer Connection │'
- say '│ Customized Version of EPM |'
- say '│ (C) Copyright IBM Corporation 1994 │'
- say '├────────────────────────────────────────────────────────────────────────────┤'
- say '│ │'
- say '│ │'
- say '│ Type [Q] to Quit or [ENTER] to continue. │'
- say '│ │'
- say '└────────────────────────────────────────────────────────────────────────────┘'
- answer = translate(linein(STDIN))
- if answer = 'Q'
- then do
- call 'MessageBox' 'CUSTEPM', 'Installation ended by user.'
- exit 0
- end /* Do */
-
-
- /* Use PACKINST.CMD to install all packages. */
-
-
- say '┌────────────────────────────────────────────────────────────────────────────┐'
- say '│ Copying CUSTEPM files to the OS2\APPS directory. │'
- say '└────────────────────────────────────────────────────────────────────────────┘'
- '@XCOPY 'CDr'EDITORS\CUSTEPM 'BDr'\OS2\APPS\*.* /s /e >nul 2>nul'
-
- call 'CaddComplete' 0
- call 'CaddExit'
- exit
-
- Initialize:
- 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
- return 0
-
- MyExit:
- call beep 300, 150
- call 'MessageBox' 'CUSTEPM', 'Installation failed. You may be running another EPM editor!'
- call 'CaDDExit'
- exit 0
-