home *** CD-ROM | disk | FTP | other *** search
- ; BME Hard Drive Installation Script
-
- ; set up a error cleanup routine
- (onerror
- (makeassign "BMEInstPgm" (safe))
- )
-
- (complete 0)
-
- ; just in case the installation was restarted
- (makeassign "BMEInstPgm" (safe)) ; start fresh
-
- ; see if this is really an update
- (set BME_dest
- (tackon
- (askdir
- (prompt "In which disk or drawer should BME be installed?")
- (help @askdir-help)
- (default @default-dest)
- )
- "BME"
- )
- )
-
- ; now lock on to volume 'BME'
- (askdisk
- (prompt "Please insert the disk labeled \"BME\".")
- (help "The BME program and related files will be copied from the "
- "\"HotLinks_Editions_Program\" disk into your system."
- )
- (dest "BME")
- (newname "BMEInstPgm")
- )
-
- (complete 33)
-
- ; at this point we have a valid destination, so we tell installer where
- ; the application will end up so the exit page will be correct -- also,
- ; the installation log file (if any) will be copied to the destination
- (set @default-dest BME_dest)
-
- ;copy all the program files from source to dest
- (copyfiles
- (prompt "This will create a new drawer called \"BME\" and "
- "will copy the following files and drawers."
- )
- (source "BMEInstPgm:BME")
- (dest BME_dest)
- (all)
- (infos)
- (confirm)
- (help "BME - is the program file.\n"
- "Graphics - is a drawer containing the tutorial files.\n\n"
- @copyfiles-help
- )
- )
-
- (complete 66)
-
- ;fix up the drawer icon to not be "snapshot"
- (tooltype
- (dest BME_dest)
- (noposition)
- )
-
-
- ;the arp library is necessary for WB 1.3 users.
- (set answer1
- (askbool (choices "Copy Arp.Library" "Do not Copy Arp.Library")
- (prompt "Do you need the Arp.Library? \"Select Help for information on Arp.\"")
- (help
- "AmigaDOS 1.2 and 1.3 do not have a standard system file "
- "requester. The Arp.Library provides a standardized file "
- "requester to BME. If you do not have the Arp.Library "
- "file already installed, select Copy. If you are unsure "
- "if you have it, select Copy. BME will not work with "
- "AmigaDOS 1.2 or 1.3 without the Arp.Library file!\n"
- "AmigaDOS 2.0 users should select Do not Copy.")
- (default 1)
- )
- )
- (if answer1
- (copyfiles
- (source "BMEInstPgm:libs/arp.library")
- (dest "LIBS:")
- )
- )
-
- (complete 100)
-
- ;cleanup
- (makeassign "BMEInstPgm" (safe))
-
- ;done, so get out
- (exit)
-