; ; Installer-Script for MEReset 3.2 ; ; Autor : Malte Eller ; Version : 2.0 ; Datum : 18.06.1999 ; ; $VER: Install 2.0 (18.06.1999) ; ;************************************************** (set @user-level 1) (if (= @language "deutsch") ( (set #bad-kick (cat "Leider wird OS3.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 #bad-kick (cat "I need OS3.0 or higher")) (set #askdir1 (cat "In which Drawer will you install MEReset?\n" "A new Drawer will be create")) (set #fragetext (cat "Should I copy the Program 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?")) )) ;************************************************** (if (< (/ (getversion) 65536) 36) ( (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) ) ) ) (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 #guide (tackon "Docs" (tackon #sprache "MEReset.guide"))) (set #destination (tackon "Help:" #sprache)) (copyfiles (source #guide) (dest #destination) (prompt #confirmt) (help @confirm-help) (confirm) ) ) ) (set #n (+ #n 1)) ) ) (complete 100)