home *** CD-ROM | disk | FTP | other *** search
- /* Install for CS-Edit/2 */
- Arg Drive
-
- If Drive = '' Then Do
- Say 'The install program needs a drive to install onto.'
- Say 'Please enter the drive you would like CS-Edit/2 installed on,'
- Say '<Default C:>'
- valid = 0
- Parse Pull Drive
- If Drive = '' Then Drive = 'C:'
- Drive = STRIP(Drive)
- If RIGHT(Drive, 1) <> ':' Then Drive = Drive || ':'
- End
- Else Drive = STRIP(Drive)
- Directory = '\CSEDIT2'
-
- Say 'Making the CS-Edit/2 Directory...'
- Say
- 'MD 'Drive||Directory
- Say
- Say "PKUNZIP2'ing the CSEDIT.ZIP file. If this step fails, edit this .CMD file"
- Say 'and Change all occurrences of PKUNZIP2 to your unzip program.'
- Say
- 'PKUNZIP2 CSEDIT.ZIP 'Drive||Directory
- Say
- Say 'Removing CS-Edit/2 INI File entries'
- Call RxFuncAdd 'SysIni', 'REXXUTIL', 'SysIni'
- Call SysIni 'USER', 'CSEDIT2', 'DELETE:'
- Say
- Say 'Creating a program object for CS-Edit/2 on your desktop...'
- Call RxFuncAdd 'SysCreateObject', 'REXXUTIL', 'SysCreateObject'
- Call SysCreateObject 'WPProgram', 'CS-Edit/2', '<WP_DESKTOP>', 'EXENAME='Drive||Directory||'\CSEDIT.EXE; STARTUPDIR='Drive||Directory, 'R'
- If result = 1 Then
- Say 'CS-Edit/2 installed!'
- Else
- Say 'Problem in CS-Edit/2 installation...'
-
- Exit