home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.team17.com 2014
/
2014.05.ftp.team17.com.tar
/
ftp.team17.com
/
pub
/
t17
/
patches
/
amiga
/
sperishd.lha
/
install-speris
< prev
next >
Wrap
Text File
|
1992-09-02
|
5KB
|
201 lines
; script to install "Speris-Legacy"
(user 2)
(welcome)
; ---------------------------------------------------------------------------
; Get destination pathname for where to install
; ---------------------------------------------------------------------------
(set speris_dest ; if user wants in different place
(tackon
(askdir
(prompt "In which disk or drawer should Speris Legacy be installed?")
(help @askdir-help)
(default @default-dest)
)
"Speris"
)
)
(makedir speris_dest (infos))
(set @default-dest speris_dest)
; ---------------------------------------------------------------------------
; Copy files from disk 1 to destination
; ---------------------------------------------------------------------------
(askdisk
(prompt "Please insert \"Speris - Disk 1\".")
(help @askdisk-help)
(dest "Speris-1")
)
(copyfiles
(source "speris-1:")
(dest speris_dest)
(infos)
(all)
)
(copyfiles
(source "speris-1:Libs")
(dest "Sys:Libs")
(infos)
(all)
)
; ---------------------------------------------------------------------------
; Copy files from disk 2 to destination
; ---------------------------------------------------------------------------
(askdisk
(prompt "Please insert \"Speris - Disk 2\".")
(help @askdisk-help)
(dest "Speris-2")
)
(copyfiles
(source "speris-2:")
(dest speris_dest)
(all)
(infos)
)
; ---------------------------------------------------------------------------
; Copy files from disk 3 to destination
; ---------------------------------------------------------------------------
(askdisk
(prompt "Please insert \"Speris - Disk 3\".")
(help @askdisk-help)
(dest "Speris-3")
)
(copyfiles
(source "speris-3:")
(dest speris_dest)
(all)
(infos)
)
; ---------------------------------------------------------------------------
; Copy files from disk 4 to destination
; ---------------------------------------------------------------------------
(askdisk
(prompt "Please insert \"Speris - Disk 4\".")
(help @askdisk-help)
(dest "Speris-4")
)
(copyfiles
(source "speris-4:")
(dest speris_dest)
(all)
(infos)
)
; ---------------------------------------------------------------------------
; Copy files from install disk to destination
; ---------------------------------------------------------------------------
(askdisk
(prompt "Please insert \"Speris - HD Install Disk\".")
(help @askdisk-help)
(dest "Speris-Install")
)
(copyfiles
(source "speris-install:Extras/")
(dest speris_dest)
(all)
(infos)
)
; ---------------------------------------------------------------------------
; Add assigns to S:User-Startup
; ---------------------------------------------------------------------------
(startup "Speris"
(prompt
"Some instructions need to be added to the \"S:user-startup\" "
"so that your system will be properly configured to use Speris Legacy."
)
(help @startup-help)
(command
"ASSIGN Speris-1: \"" speris_dest "\"\n"
"ASSIGN Speris-2: \"" speris_dest "\"\n"
"ASSIGN Speris-3: \"" speris_dest "\"\n"
"ASSIGN Speris-4: \"" speris_dest "\"\n"
"ASSIGN Speris: Remove\n"
"ASSIGN Speris: Speris-1:\n"
)
)
; ---------------------------------------------------------------------------
; Make script file so that game can run by booting with no startup
; ---------------------------------------------------------------------------------------------------------------------------------------------------
(textfile
(prompt
"Attempting to create an executable script file so game can be "
"run when booting with no startup-sequence. The file will be "
"stored in the root directory of the boot drive and will be "
"called `RunSperis'."
)
; (prompt
; "Attempting to create an executable script file which will "
; "set up the game and then run it. The file will be stored "
; "in the root directory of the boot drive and will be called "
; "`RunSperis'."
; )
(confirm)
(help @textfile-help)
(dest (cat "Sys:RunSperis"))
(append (cat "Assign Speris-1: " speris_dest))
(append "\n")
(append (cat "Assign Speris-2: " speris_dest))
(append "\n")
(append (cat "Assign Speris-3: " speris_dest))
(append "\n")
(append (cat "Assign Speris-4: " speris_dest))
(append "\n")
(append (cat "Assign Speris: Remove"))
(append "\n")
(append (cat "Assign Speris: Speris-1:"))
(append "\n")
(append (cat "Speris:Speris.exe"))
(append "\n")
)
(protect (cat "Sys:RunSperis") "+s")
; ---------------------------------------------------------------------------
; Make non-volatile structure on hard-drive
; ---------------------------------------------------------------------------------------------------------------------------------------------------
(set nv_dest ; if user wants in different place
(tackon
(askdir
(prompt
"Attempting to create a non-volatile directory so that "
"games can be saved to hard-drive. Please select where "
"you would like this to be created:"
)
(help @askdir-help)
(default "Sys:")
)
"nonvolatile"
)
)
(makedir nv_dest (infos))
(textfile
(dest (cat "Sys:Prefs/Env-Archive/Sys/nv_location"))
(append (cat nv_dest))
(append "\n")
)