home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 August - Disc 3
/
chip_20018103_hu.iso
/
amiga
/
chiputil
/
commander.lha
/
Commander
/
Install
/
InstallScript
< prev
next >
Wrap
Text File
|
2001-06-09
|
3KB
|
177 lines
;
; Commander 1.0 installer
; *************************
;
; (c) 2001 Magic Software
; ***********************
;
;
; -------------------------------------------------------------------------
;
; Set messages
;
(if (= @language "english")
(
(set #select-destination
(cat "Where do you want to install program files? A directory "
"called \"Commander\" will be automatically created."
)
)
(set #select-executable "Where do you want to install the executable file?")
(set #select-catalogs "Which translations do you want to install?")
(set #copying-files "Copying files...")
(set #copying-library "Copying utilities.library...")
)
)
(if (= @language "polski")
(
(set #select-destination
(cat "Gdzie chcesz zainstalowaΩ pliki zwiΓzane z programem? Katalog "
"o nazwie \"Commander\" zostanie automatycznie utworzony."
)
)
(set #select-executable "Gdzie chcesz zainstalowaΩ plik wykonywalny?")
(set #select-catalogs "Kt≤re tεumaczenia chcesz zainstalowaΩ?")
(set #copying-files "Kopiujδ pliki...")
(set #copying-library "Kopiujδ utilities.library...")
)
)
;
;
;--------------------------------------------------------------------------
;
;
;
; Ask about files' destination
;
(set #destinationParent
(askdir
(prompt #select-destination)
(help @askdir-help)
(default "SYS:")
)
)
;
; Ask about executable's destination
;
(set #destinationExecutable
(askdir
(prompt #select-executable)
(help @askdir-help)
(default "SYS:WBStartup/")
)
)
;
; Ask about catalogs
;
(set #catalogs
(askoptions
(prompt #select-catalogs)
(help @askoptions-help)
(choices "Deutsch" "Polski")
(default 0)
)
)
;
;
; -------------------------------------------------------------------------
;
;
(set #destination
(tackon #destinationParent "Commander"
)
)
;
; Create destination directory
;
(makedir #destination
(infos)
)
;
; Copy files
;
(copyfiles
(source "/")
(dest #destination)
(choices "Docs")
(prompt #copying-files)
(help @copyfiles-help)
(infos)
)
;
; Copy executable file
;
(copyfiles
(source "/WBStartup/Commander")
(dest #destinationExecutable)
(prompt #copying-files)
(help @copyfiles-help)
(infos)
)
;
; Copy catalog description and catalogs
;
(makedir (cat #destination "/Catalogs") )
(copyfiles
(source "/Catalogs.info")
(dest #destination)
(prompt #copying-files)
(help @copyfiles-help)
)
(copyfiles
(source "/Catalogs/Commander.cd")
(dest (cat #destination "/Catalogs") )
(prompt #copying-files)
(help @copyfiles-help)
)
(set n 0)
(while (set #catalog (select n "Polski" "Deutsch" "") )
(
(if (IN #catalogs n)
(
(copyfiles
(source (cat "/Catalogs/" #catalog) )
(dest (cat "LOCALE:Catalogs/" #catalog) )
(all)
)
)
)
(set n (+ n 1) )
)
)
;
; Copy utilities.library
;
(copylib
(source "/Libs/utilities.library")
(dest "Libs:")
(prompt #copying-library)
(help @copylib-help)
(confirm)
)
;
; Copy wbstart.library
;
(copylib
(source "/Libs/wbstart.library")
(dest "Libs:")
(prompt #copying-library)
(help @copylib-help)
(confirm)
)
(exit)