home *** CD-ROM | disk | FTP | other *** search
- (set askprompt1 "Please select the directory to install the program in.\n")
- (set askprompt2 "A new drawer called \"CP\" will be created there")
- (set error1 "There was an error while installing.\n")
- (set error2 "All files installed will be deleted.")
-
- (set message0 "Welcome to the CP installation utility!!\n\n")
- (set message1 "Please Note: If an error occurs during installation, all installed")
- (set message2 " files will be deleted and you should then try to install the files ")
- (set message3 "again.\n\nI hope that you will enjoy this preview version!!\n")
-
- (set direxists "Sorry, Directory exists already!!")
- (set direxistprompt1 "DIRECTORY ALREADY EXISTS!!!\n\n\n")
- (set direxistprompt2 "Do you want to copy over the existing directory 'CP'?\n(All files")
- (set direxistprompt3 " in existing directory will be deleted) ")
- (set direxisthelp1 "Clicking \"Yes\" will cause the installer to delete the existing")
- (set direxisthelp2 " directory entitled \"CP\". It will then create a new directory")
- (set direxisthelp3 " \"CP\" and install all the necessary files into it.")
- (set direxisthelp4 "\n\nIf you are installing a new version of CP (v0.15+) click \"Yes\"")
- (set direxisthelp5 "\n\n\nIf you are unsure what to do, select \"No\"!!")
-
- (set dirstartup1 "\nCP needs an assign to be placed in your S:User-startup.")
-
- (set #exit-message
- (cat "\nWelcome To CP!!\n\n"
- "The installation was 100% successful!!\n\n\n"
- "Please reboot to use CP!!"))
-
- (welcome (cat message0 message1 message2 message3))
-
- (set dir (cat @default-dest "CP"))
-
- (onerror (if (exists dir (noreq))
- (delete dir
- (prompt "ERROR!! Deleting all installed files!!")
- (help (cat error1 error2 error3))
- (optional force)
- (all)
- )
- ((message "I'm afraid that an error occured. Please Try Again!" (all)))
- )
- )
-
- (set dir (askdir
- (prompt (cat askprompt1 askprompt2))
- (help @askdir-help)
- (default @default-dest))
- )
-
- (complete 25)
- (set dir (tackon dir "CP"))
- (set @default-dest dir)
-
- (if (exists dir)
- (
- (set wipe (askbool
- (prompt (cat direxistprompt1 direxistprompt2 direxistprompt3))
- (help (cat direxisthelp1 direxisthelp2 direxisthelp3 direxisthelp4 direxisthelp5))
- )
- )
- )
- (
- (set wipe 1)
- )
- )
-
- (if (= wipe 0)
- (
- (abort "Existing folder \"CP\" has been left intact.\n\nExiting Installation.")
- )
- (
- (makedir dir (prompt "Just creating the directory...")(help @makedir-help)(infos))
- )
- )
-
- (copyfiles
- (prompt "Copying files to selected directory...")
- (source "")
- (dest dir)
- (all)
- (fonts)
- )
- (complete 75)
-
- (set dir (tackon dir "CP"))
-
- (complete 85)
-
- (startup "CP"
- (prompt dirstartup1)
- (command (cat "Assign CP: " dir))
- (help @startup-help)
- )
-
- (complete 100)
- (message #exit-message)
-