home *** CD-ROM | disk | FTP | other *** search
Wrap
; APPNAME=Musical Sensation I ; MINUSER=AVERAGE ; LOG=FALSE ; Installer Code By: Cruiser/TRiAD ; Address: Kent Persson ; Betesv.22 ; S-240 10 Dalby ; Sweden ; Musical Sensation Installer Script ; ---------------------------------- ; Musical Sensation Volumes ; ------------------------- (set Musical_disk1 "Musical Sensation #1:") (set Musical_disk2 "Musical Sensation #2:") (set Musical_drawer "Musical_Sensation") ; Ask Disk procedure ; ------------------ (procedure Musical_askdisk (askdisk (prompt "Please.. insert " Musical_disk " in any drive...") (dest (substr Musical_disk 0 (- (strlen Musical_disk) 1))) (help @askdisk-help) ) ) ; Fetch System Configuration ; -------------------------- (set Musical_cpu (database "cpu")) ; (set Musical_video (database "vblank")) (set Musical_version (/ (getversion) 65536)) ; Must be 68020/30/40 machine ; --------------------------- (if (OR (= Musical_cpu "68000") (= Musical_cpu "68010")) (if (= 0 (askbool (prompt "Sorry but you need an AGA machine to run this program\nDo you really want to install Musical Sensation to your " Musical_cpu " based system?") (help " ") (default 1) )) (abort "Musical Sesnation Cannot be run on\n" Musical_cpu " based machines") ) ) ; Ask the destination directory ; ----------------------------- (set @default-dest "Musical_Sensation:") (set version (/ (getversion) 65536)) (set Musical_dest (askdir (prompt "Select the location to install the Musical Sensation directory") (default @default-dest) (help "Choose a destination partition or directory to contain " "Musical Sensation. A directory called 'Musical Sensation' will be created " "and program files copied in the location you choose." ) ) ) (set Musical_dest1 (tackon Musical_dest Musical_drawer)) (set @default-dest Musical_dest1) (message "Musical Sensation will be installed in " Musical_dest1 ) ; Create Musical Sensation directory ; ------------------------ (set error (trap 4 (makedir Musical_dest1 (infos)))) (if (> error 0) (message ("Dos Error %ld detected" @ioerr))) (set @execute-dir Musical_dest1) ; Install Disk2 ; ------------- ( set MusicPath (Musical_dest1)) (set Musical_disk Musical_disk2) (Musical_askdisk) (makedir (tackon Musical_dest1 "Music")) ; Empty drawers need this (set destination (tackon Musical_dest1 "Music")) (set KeyPath Musical_dest1) (copyfiles (optional "nofail") (source (cat Musical_disk2, "Music/Tune1.TPc")) (dest destination )) (copyfiles (optional "nofail") (source (cat Musical_disk2, "Music/Tune2.TPc")) (dest destination )) (copyfiles (optional "nofail") (source (cat Musical_disk2, "Music/Tune3.TPc")) (dest destination )) (copyfiles (optional "nofail") (source (cat Musical_disk2, "Music/Tune4.TPc")) (dest destination )) ; Install Disk 1 ; -------------- (set Musical_disk Musical_disk1) (Musical_askdisk) ( set MusicPath (Musical_dest1)) (copyfiles (source (tackon Musical_disk1 "MS.exe")) (dest MusicPath)) ; Cleanup ; ------- (delete ("RAM:%s" Musical_comp)) ; Modify Startup-sequence ;------------------------ (set error 1) (until (= error 0) ( (set error (trap 4 (startup "Musical Sensation 1" (prompt ("The assigns for Musical Sensation has been created")) (command ('assign "Musical Sensation #1:" %s' Musical_dest1) "\n") (command ('assign "Musical Sensation #2:" %s' Musical_dest1) "\n") (command ('assign "MS:" %s' Musical_dest1)) (help "Installer will add assigns to your user-startup script\n" ) ) )) (if (> error 0) (if (or (= @ioerr 222) (or (= @ioerr 223) (= @ioerr 224))) (message "Startup file is write protected. Use protect " "to write enable the file, and select Proceed" ) ;else other type of error ( (message "Non-Standard startup sequence detected. You must add " "the following line by hand.\n\n" " assign 'Musical Sensation #1:' " Musical_dest1 "\n" " assign 'Musical Sensation #2:' " Musical_dest1 "\n" " assign 'MS:' " Musical_dest1 "\n" ) (set error 0) ) ) ) ) ) (makeassign "Musical Sensation #1:" Musical_dest1) (makeassign "Musical Sensation #2:" Musical_dest1) (makeassign "MS:" Musical_dest1) (message " " " " " " " " " " "Please Reboot Your Machine To Run\n" "MUSICAL SENSATION!!!\n\n" "After reboot type 'MS:MS.exe' directly in your CLI to run!") (complete 100)