home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format 96
/
af096sub.adf
/
reset.LZX
/
mereset
/
Install
< prev
next >
Wrap
Text File
|
2002-05-07
|
3KB
|
169 lines
;
; Installer-Script for MEReset 2.0
;
; Autor : Malte Eller
; Version : 1.0
; Datum : 11.01.1997
;
; $VER: Install 1.0 (11.01.1997)
;
;**************************************************
(set @user-level 1)
(if (= @language "deutsch")
(
(set #bad-kick (cat "Leider wird OS2.0 oder höher benötigt"))
(set #askdir1 (cat "Wohin wollen Sie MEReset installieren?\n"
"Dort wird dann eine neue Schubalde angelegt"))
(set #fragetext (cat "Soll ich das Programm auch in die\n"
" WBStartup kopieren?"))
(set #ja (cat "Ja"))
(set #nein (cat "Nein"))
(set #confirmt (cat "Was soll ich instalieren?"))
(set #fragetextL (cat "Welche Sprachen sollen installiert werden?"))
(set #CLI_Ver (cat "Soll ich die CLI/Shell-Version installieren?"))
)
(
(set #bad-kick (cat "I need OS2.0 or higher"))
(set #askdir1 (cat "In which Drawe will you install MEReset?\n"
"A new Drawer will be create"))
(set #fragetext (cat "Shall I copy the Progrmm to WBStartup"))
(set #ja (cat "Yes"))
(set #nein (cat "No"))
(set #confirmt (cat "What should I install?"))
(set #fragetextL (cat "Which languages should I install?"))
(set #CLI_Ver (cat "Should I install the CLI/Shell-Version?"))
))
;**************************************************
(if (< (/ (getversion) 65536) 37)
(
(abort #bad-kick)
))
;**************************************************
(complete 0)
(set #name
(askdir
(prompt #askdir1)
(help @askdir-help)
(default "SYS:Tools")
)
)
(set #Dname (tackon #name "MEReset"))
(makedir #Dname
(infos)
)
(copyfiles
(source "")
(dest #Dname)
(pattern "#?")
(prompt #confirmt)
(help @confirm-help)
(confirm)
)
(complete 50)
;**************************************************
(set name
(askoptions
(prompt #fragetext)
(help @askoptions-help)
(choices #Ja)
(default 1)
)
)
(if (= 1 name)
(
(copyfiles
(source "MEReset")
(dest "sys:WBStartup")
(prompt #fragetext)
(help @confirm-help)
(confirm)
)
(copyfiles
(source "MEReset.info")
(dest "sys:WBStartup")
(prompt #fragetext)
(help @confirm-help)
(confirm)
)
)
)
(set name
(askoptions
(prompt #CLI_Ver)
(help @askoptions-help)
(choices #Ja)
(default 1)
)
)
(if (= 1 name)
(
(copyfiles
(source "MEReset.CLI")
(dest "s:")
(prompt #fragetext)
(help @confirm-help)
(confirm)
)
))
(complete 80)
;**************************************************
(if (exists "sys:locale/catalogs")
(set #lang (askoptions
(prompt #fragetextL)
(help @askoptions-help)
(choices "Deutsch" "English")
(default 1))
)
)
(set #n 0)
(while
(set #sprache
(select #n
"Deutsch"
"English"
""
)
)
(
(if (IN #lang #n)
(
(set #catalog (tackon "Catalogs" (tackon #sprache "mereset.catalog")))
(set #destination (tackon "Locale:Catalogs/" #sprache))
(copyfiles
(source #catalog)
(dest #destination)
(prompt #confirmt)
(help @confirm-help)
(confirm))
)
)
(set #n (+ #n 1))
)
)
(complete 100)