home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 29
/
amigaformatcd29.iso
/
-screenplay-
/
shareware
/
playpac
/
playpac.install
< prev
next >
Wrap
Text File
|
1998-06-01
|
4KB
|
134 lines
;+----------------------------------------------------------------------------+
;| |
;| PlayPac install script v1.10 (1-Oct-97) |
;| |
;| |
;#============================================================================#
;******************************************************************************
;Set strings
;******************************************************************************
(set #where-prompt
(cat "Where should I install PlayPac?"))
(set #abort-message
(cat "PlayPac requires OS3.0 to run"))
(set #gfxdata-prompt
(cat "Do you want to install Hires64 graphic files?"))
(set #gfxdata-help
(cat "Hires64 graphics require AGA chipset. To use Hires64 data files in game set PlayPac's tooltype GRAPHICSDATA=HIRES64.")
)
;******************************************************************************
;Here we go...
;******************************************************************************
(welcome)
(if (< (/ (getversion) 65536) 39) (abort #abort-message))
;******************************************************************************
;Ask destination directory
;******************************************************************************
(set where (askdir (prompt #where-prompt)
(help @askdir-help)
(default @default-dest)
)
)
(set @default-dest where)
;******************************************************************************
;Ask graphic data choice
;******************************************************************************
(set gfxchoice (askbool (prompt #gfxdata-prompt)
(help #gfxdata-help)
(choices "Yes" "No")
(default 1)
)
)
;******************************************************************************
;Create destination directories (or delete old files)
;******************************************************************************
(if (exists (tackon where "PlayPacData/"))
(
(foreach (tackon where "PlayPacData/") "#?"
(delete (cat (tackon where "PlayPacData/") @each-name)))
)
(
(makedir (tackon where "PlayPacData"))
)
)
(if (exists (tackon where "PlayPacData/Lores16/"))
(
(foreach (tackon where "PlayPacData/Lores16/") "#?"
(delete (cat (tackon where "PlayPacData/Lores16/") @each-name)))
)
(
(makedir (tackon where "PlayPacData/Lores16"))
)
)
(if (= gfxchoice 1) ;Hires64 selected
(if (exists (tackon where "PlayPacData/Hires64/"))
(
(foreach (tackon where "PlayPacData/Hires64/") "#?"
(delete (cat (tackon where "PlayPacData/Hires64/") @each-name)))
)
(
(makedir (tackon where "PlayPacData/Hires64"))
)
)
)
(if (exists (tackon where "PlayPacData/Sound/"))
(
(foreach (tackon where "PlayPacData/Sound/") "#?"
(delete (cat (tackon where "PlayPacData/Sound/") @each-name)))
)
(
(makedir (tackon where "PlayPacData/Sound"))
)
)
;******************************************************************************
;Copy files
;******************************************************************************
(copyfiles (source "Fonts/") (dest "SYS:Fonts") (all))
(copyfiles (source "PlayPac") (dest where))
(copyfiles (source "PlayPac.info") (dest where))
(copyfiles (source "PlayPac.guide") (dest where))
(copyfiles (source "PlayPac.guide.info") (dest where))
(copyfiles (source "PlayPacData/Lores16/")
(dest (tackon where "PlayPacData/Lores16/"))
(all)
)
(if (= gfxchoice 1) ;Hires64 selected
(copyfiles (source "PlayPacData/Hires64/")
(dest (tackon where "PlayPacData/Hires64/"))
(all)
)
)
(copyfiles (source "PlayPacData/Sound/")
(dest (tackon where "PlayPacData/Sound/"))
(all)
)
;******************************************************************************
;That's it!
;******************************************************************************