home *** CD-ROM | disk | FTP | other *** search
- ; []----------------------------------------------------------------------[]
- ; | CyberTech Corp. © 1993, 1994 Tim Caldwell |
- ; | All rights reserved. |
- ; | |
- ; | AMIGA 1200/4000 Hard Drive Installation Script |
- ; []----------------------------------------------------------------------[]
-
-
- ; Check to see what version of Workbench we are running under. As the game
- ; is AGA only, a minimum version of 3.0 is required.
- ;
- (set osversion (/ (getversion) 65536))
- (if (< osversion 39)
- (abort "CyberTech Corp. requires a minimum of Workbench 3.0")
- )
-
-
- ; Ask the user which directory they would like the game installed to, then
- ; create the directories we need.
- ;
- (set @default-dest
- (askdir
- (prompt "Please select the directory to install the\n"
- "game to. If you do not create a new directory\n"
- "then the game will be installed to the one shown.\n"
- )
- (help "You must select the directory that the game\n"
- "is to be installed to. Once a directory has\n"
- "been selected, the main game file will be\n"
- "copied there; all other files will be copied\n"
- "to a subdirectory called Data which will be\n"
- "automatically created for you.\n"
- )
- (default "Work:Games")
- )
- )
-
- (set datadir (tackon @default-dest "Data"))
- (if
- (= (exists datadir) 0)
- (makedir datadir)
- )
-
-
- ; Now that we have the basic directory structure we can start copying the
- ; files across.
- ;
- (copyfiles
- (prompt "")
- (help "")
- (source "CTBoot:CyberTech")
- (dest @default-dest)
- (infos)
- )
- (copyfiles
- (prompt "")
- (help "")
- (source "CTBoot:Data")
- (dest datadir)
- (pattern "#?")
- (infos)
- )
-
- (askdisk
- (prompt "Please insert the disk labeled\n"
- "\"CyberTech Data Disk\"")
- (help "")
- (dest "CTData")
- )
- (copyfiles
- (prompt "")
- (help "")
- (source "CTData:")
- (dest datadir)
- (pattern "#?")
- (infos)
- )
-
-
- ; Finally, modify the User-Startup sequence by inserting an assign to the
- ; game directory (providing the user allows us to !)
- ;
- (if
- (= (exists "S:User-Startup") 1)
- (
- (startup "CTBoot"
- (prompt "")
- (help "")
- (command ("Assign CTBoot: %s" @default-dest))
- )
- )
- )
- (makeassign "CTBoot" @default-dest)
-
-
- ; All done !
- (exit)
-