home *** CD-ROM | disk | FTP | other *** search
- ; This script file installs ClickDOS II.
- ; It does the following:
- ; Copies ClickDOS II to the utilities directory of your workbench disk
- ; it creates this directory if it does not exist
- ; Copies the Spool program to the directory where C: is assigned
- ; Copies the ClickDOS-Startup file to the directory where S: is assigned
- ; It copies the null-handler to the directory where L: is assigned
- ; It appends to the mountlist and startup-sequence files
- ; it creates these files if they do not exist
- ; It activates the NULL: device
-
- ECHO "-- ClickDOS II INSTALL script --*N"
- ECHO "Installing ClickDOS II..."
- IF NOT EXISTS SYS:Utilities
- ECHO " Utilities directory does not exist. Creating..."
- Makedir SYS:Utilities
- ENDIF
- IF NOT EXISTS SYS:Utilities
- ECHO " Utilities directory can not be created!!"
- SKIP end
- ENDIF
- COPY ClickDOS_II:ClickDOS_II TO SYS:Utilities
- COPY ClickDOS_II:ClickDOS_II.info TO SYS:Utilities
- IF NOT EXISTS SYS:Utilities/ClickDOS_II
- ECHO " ClickDOS II cannot be copied to Utilities directory!!"
- SKIP end
- ENDIF
- ECHO "Installing Spool..."
- IF NOT EXISTS C:
- ECHO " C: is not assigned!! Can't copy Spool program!!"
- SKIP end
- ENDIF
- COPY ClickDOS_II:Spool TO C:
- IF NOT EXISTS C:Spool
- ECHO " Spool cannot be copied to C: directory!!"
- SKIP end
- ENDIF
- ECHO "Installing ClickDOS-Startup..."
- IF NOT EXISTS S:
- ECHO " S: is not assigned!! Can't copy ClickDOS-Startup file!!"
- SKIP end
- ENDIF
- COPY ClickDOS_II:ClickDOS-Startup TO S:
- IF NOT EXISTS S:ClickDOS-Startup
- ECHO " ClickDOS-Startup cannot be copied to S: directory!!"
- SKIP end
- ENDIF
- ECHO "Installing null-handler..."
- IF NOT EXISTS SYS:l
- ECHO " SYS:l does not exist. Creating..."
- MAKEDIR SYS:l
- ENDIF
- IF NOT EXISTS SYS:l
- ECHO " SYS:l could not be created!!!"
- SKIP end
- ENDIF
- COPY ClickDOS_II:l/null-handler TO SYS:l
- IF NOT EXISTS SYS:l/null-handler
- ECHO " null-handler could not be copied to SYS:l!!!"
- SKIP end
- ENDIF
- ECHO "Appending to MountList..."
- IF NOT EXISTS SYS:devs
- ECHO " SYS:devs does not exist. Creating..."
- MAKEDIR SYS:devs
- ENDIF
- IF NOT EXISTS SYS:devs
- ECHO " SYS:devs could not be created!!!"
- SKIP end
- ENDIF
- IF NOT EXISTS SYS:devs/MountList
- ECHO "MountList does not exist. Creating..."
- COPY ClickDOS_II:devs/MountList TO SYS:devs
- ELSE
- JOIN SYS:devs/MountList ClickDOS_II:devs/MountList AS SYS:devs/temp.$$$
- IF EXISTS SYS:devs/temp.$$$
- RENAME SYS:devs/MountList TO SYS:devs/OldMountList
- IF EXISTS SYS:devs/OldMountList
- ECHO "Your MountList has been renamed to OldMountList."
- RENAME SYS:devs/temp.$$$ TO SYS:devs/MountList
- ELSE
- ECHO " Can't rename old MountList"
- SKIP end
- ENDIF
- ELSE
- ECHO " Can't Append to MountList!!!"
- SKIP end
- ENDIF
- ENDIF
- ECHO "Appending to Startup-sequence..."
- IF NOT EXISTS S:Startup-sequence
- ECHO "Startup-sequence does not exist. Creating..."
- COPY ClickDOS_II:s/Startup-sequence TO S:
- ELSE
- JOIN S:Startup-sequence ClickDOS_II:s/Startup-sequence AS S:temp.$$$
- IF EXISTS S:temp.$$$
- RENAME S:Startup-sequence TO S:OldStartup-sequence
- IF EXISTS S:OldStartup-sequence
- ECHO "Your Startup-sequence has been renamed to OldStartup-sequence."
- RENAME S:temp.$$$ TO S:Startup-sequence
- ELSE
- ECHO " Can't rename old Startup-sequence"
- SKIP end
- ENDIF
- ELSE
- ECHO " Can't Append to Startup-sequence!!!"
- SKIP end
- ENDIF
- ENDIF
- ECHO "Mounting NULL: device..."
- MOUNT NULL:
- ECHO "Installation Complete."
- LAB end
- ECHO "(Press CTRL-C to close window)"
-