home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Amiga Game Guide
/
AmigaGameGuide_CD.iso
/
Amiga
/
Game-Installer
/
WHD_Installers
/
Games_E-F
/
FinalFight
/
FinalFightInstall
< prev
next >
Wrap
Text File
|
1977-12-31
|
3KB
|
121 lines
;Patcher-install-script for Gore-Design-Installs
;****************************
(set #readme-file (cat @app-name ".Txt")) ; name of readme file
(set #cleanup "") ; files to delete after install
;****************************
;----------------------------
; Checks if given program is reachable via the path
; if not abort install
; IN: #program - to check
; OUT: -
(procedure P_chkrun
(if
(= 0 (run ("cd SYS:\nWhich %s" #program)))
("")
(abort ("You must install \"%s\" first !\nIt must be accessible via the path.\nYou can find it in the WHDLoad package." #program))
)
)
;****************************
(set #program "WHDLoad")
(P_chkrun)
(if
(exists #readme-file)
(if
(= 0 (run ("SYS:Utilities/Multiview %s" #readme-file)))
("")
(run ("SYS:Utilities/More %s" #readme-file))
)
)
(set @default-dest
(askdir
(prompt ("Where should \"%s\" be installed ?\nA drawer \"%s\" will automatically be created." @app-name @app-name))
(help @askdir-help)
(default @default-dest)
(disk)
)
)
(set #dest (tackon @default-dest @app-name))
(if
(exists #dest)
(
(set #choice
(askbool
(prompt ("\nDirectory \"%s\" already exists.\n Should it be deleted ?" #dest))
(default 1)
(choices "Delete" "Skip")
(help @askbool-help)
)
)
(if
(= #choice 1)
(run ("Delete \"%s\" \"%s.info\" All" #dest #dest))
)
)
)
(makedir #dest
(help @makedir-help)
)
(makedir (tackon #dest "FinalFightData")
(help @makedir-help)
)
(copyfiles
(help @copyfiles-help)
(source ("/%s.info" @app-name ))
(dest @default-dest)
)
;----------------------------
(copyfiles
(help @copyfiles-help)
(source ("%s.info" @app-name ))
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("%s.Slave" @app-name ))
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("%sInstall.info" @app-name ))
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("%sInstall" @app-name ))
(dest #dest)
)
(if
(exists #readme-file)
(
(copyfiles
(help @copyfiles-help)
(source #readme-file)
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("%s.info" #readme-file))
(dest #dest)
)
)
)
(run ("copy \"Final Fight Disk A (C)1991:\" to \"%s/FinalFightData\" all quiet" #dest))
(run ("copy \"Final Fight Disk B(C)1991:\" to \"%s/FinalFightData\" all quiet" #dest))
;----------------------------
(run ("Delete %s ALL QUIET FORCE" #cleanup)) ;delete temporary files
(exit)