home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
disk
/
misc
/
azap
/
installazap
< prev
next >
Wrap
Text File
|
1995-02-27
|
3KB
|
106 lines
;---------------------------------------------------------------
;
; Installer script for AZap
; $VER: 36.0 (24.04.94)
; Written by Denis GOUNELLE
;
;---------------------------------------------------------------
;
(complete 0)
(set ProgVer "2.20")
(set ProgName "AZap")
(set KickVer (/ (getversion) 65536))
(set SCFlag (if (AND (> KickVer 35) (exists "S:.SoftConfig")) 1 0))
;
(set InstallOpt
(askoptions (prompt "Which part of the program whould you like to install ?")
(help @askoptions-help)
(choices "Program" "Locales" "ReqTools.library")
)
)
;
;--------------------- Install the program --------------------
;
(complete 25)
(if (BITAND InstallOpt 1)
((set ProgDir (askdir
(prompt "Select the directory where to install AZap")
(help "The program will be copied in this directory. You may want to install AZap in a directory which is in your default path.")
(default "SYS:Utilities/")
)
)
(copyfiles (prompt "Installing program")
(help @copyfiles-help)
(source ProgName)
(newname "AZap")
(dest ProgDir)
(infos)
)
(if SCFlag
((run (cat "SoftConfig ADD AZap " (tackon ProgDir "AZap") " FILE " ProgVer))
(run (cat "SoftConfig ADD AZap.config S:AZap.config FILE " ProgVer))
(run "SoftConfig ATTACH AZap AZap.config")
)
))
)
;
;--------------------- Install the locale --------------------
;
(complete 50)
(if (BITAND InstallOpt 2)
((set Langage (askchoice (prompt "Which locale do you want to install ?")
(help @askchoice-help)
(choices "deutsch" "español" "français" "nederlands" "norsk" "svenska" "none")))
(if (= Langage 0) (set LocaleName "deutsch"))
(if (= Langage 1) (set LocaleName "español"))
(if (= Langage 2) (set LocaleName "français"))
(if (= Langage 3) (set LocaleName "nederlands"))
(if (= Langage 4) (set LocaleName "norsk"))
(if (= Langage 5) (set LocaleName "svenska"))
(if (NOT (= Langage 6))
((set LocaleSrc (tackon "catalogs" LocaleName))
(set LocaleDst (tackon "LOCALE:" LocaleSrc))
(set LocaleName "AZap.catalog")
(if (NOT (exists LocaleDst)) (makedir LocaleDst (prompt "Creating locale directory") (help @makedir-help)))
(copyfiles (prompt "Installing locale")
(help @copyfiles-help)
(source (tackon LocaleSrc LocaleName))
(dest LocaleDst)
)
(if SCFlag
((run (cat "SoftConfig ADD " LocaleName " " (tackon LocaleDst LocaleName) " FILE " ProgVer))
(run (cat "SoftConfig ATTACH AZap " LocaleName))
)
))
))
)
;
;--------------------- Install ReqTools.library --------------------
;
(complete 75)
(if (BITAND InstallOpt 8)
((if (> KickVer 35) (set LibExt "20") (set LibExt "13"))
(copylib (prompt "Installing reqtools.library")
(help @copylib-help)
(source (cat "/libs/reqtools.library" LibExt))
(dest "LIBS:")
(newname "reqtools.library")
(confirm)
))
)
;
(if (exists "LIBS:reqtools.library")
((set RTVer (getversion "LIBS:reqtools.library"))
(set RTNVer (/ RTVer 65536))
(set RTSVer ("%ld.%ld" RTNVer (- RTVer (* RTNVer 65536))))
(if SCFlag
((run (cat "SoftConfig ADD reqtools.library LIBS:reqtools.library FILE " RTSVer))
(run "SoftConfig ATTACH AZap reqtools.library")
)
))
)
;
(complete 100)
(set @default-dest ProgDir)