home *** CD-ROM | disk | FTP | other *** search
Wrap
; $VER: Installation script for MyNotes 0.5 (22.12.02) ; © 2002 Jean Holzammer ; Created with GoldED 6.16 (if (= @language "Deutsch") ( (set #osversion_msg "Falsche Betriebssystemversion (Software benötigt OS 39 oder besser) !") (set #onerror_msg "Während der Installation ist ein Fehler aufgetreten. Bitte Log-Datei überprüfen für ein besseres Verständnis des Fehlers.") (set #general_copyfiles_prompt "Bitte zu kopierende Datei(en) auswählen...") (set #general_askbool_yes "Ja") (set #general_askbool_no "Nein") (set #executable_askdir_prompt "Bitte Zielpfad für das Programm MyNotes wählen. Ein eigenes Verzeichnis wird nicht erstellt.") (set #executable_askdir_help "Es wird empfohlen, ein Ziel zu wählen, das im Pfad liegt, am sinnvollsten C: .") (set #documentation_askbool_prompt "Soll die AmigaGuide/PowerGuide Dokumentation installiert werden ?") (set #documentation_askbool_help "Momentan ist nur eine englische und duetsche Dokumentation verfügbar.") (set #german_doc_askdir_prompt "Bitte Zielpfad für die deutsche Dokumentation wählen...") (set #german_doc_askdir_help #documentation_askbool_help) (set #english_doc_askdir_prompt "Bitte Zielpfad für die englische Dokumentation wählen...") (set #english_doc_askdir_help #documentation_askbool_help) (set #documentation_copyfiles_help #documentation_askbool_help) (set #documentation_askoptions_prompt "Bitte zu installierende Sprache(n) auswählen") (set #documentation_askoptions_help #documentation_askbool_help) (set #catalogs_askbool_prompt "Sollen Katalog-Dateien installiert werden ?") (set #catalogs_askbool_help "Momentan ist nur eine deutsche Lokalisation verfügbar.") (set #catalogs_askoptions_prompt "Bitte zu installierende Sprache(n) auswählen") (set #catalogs_askoptions_help #catalogs_askbool_help) (set #german_catalog_askdir_prompt "Bitte Zielpfad für den deutschen Katalog wählen...") (set #german_catalog_askdir_help "Sollte in LOCALE:Catalogs/Deutsch sein.") (set #german_catalog_copyfiles_prompt #catalogs_askbool_help) (set #translation_msg "Wer Interesse am Erzeugen einer Katalog-Datei für eine andere Sprache hat, kann MyNotes.ct als Ausgangsbasis verwenden oder mich kontakten.") ) ; else use English version ( (set #osversion_msg "Incorrect OS version (software requires OS 39 or better) !") (set #onerror_msg "An error has occurred during installation. Please check the log file to understand the error.") (set #general_copyfiles_prompt "Select file(s) to be copied to...") (set #general_askbool_yes "Yes") (set #general_askbool_no "No") (set #executable_askdir_prompt "Please choose the destination path for the MyNotes executable. A separate directory will not be created.") (set #executable_askdir_help "It's recommended that you choose a destination that is in your path, most reasonably C: .") (set #documentation_askbool_prompt "Would you like the AmigaGuide/PowerGuide documentation to be installed ?") (set #documentation_askbool_help "Only English and German documentation available for now.") (set #german_doc_askdir_prompt "Please choose the destination path for the German documentation...") (set #german_doc_askdir_help #documentation_askbool_help) (set #english_doc_askdir_prompt "Please choose the destination path for the English documentation...") (set #english_doc_askdir_help #documentation_askbool_help) (set #documentation_copyfiles_help #documentation_askbool_help) (set #documentation_askoptions_prompt "") (set #documentation_askoptions_help #documentation_askbool_help) (set #catalogs_askbool_prompt "Would you like catalogs to be installed ?") (set #catalogs_askbool_help "Only German localisation available for now.") (set #catalogs_askoptions_prompt "Select the language(s) you'd like to install") (set #catalogs_askoptions_help #catalogs_askbool_help) (set #german_catalog_askdir_prompt "Please choose the destination path for the German catalog...") (set #german_catalog_askdir_help "Should be in LOCALE:Catalogs/Deutsch.") (set #german_catalog_copyfiles_prompt #catalogs_askbool_help) (set #translation_msg "If you are interested in creatung a catalog file for another language you can use MyNotes.ct as a basis or contact me.") ) ) ; check if we are running under correct OS (if (< (/ (getversion) 65536) 39) ( (abort #osversion_msg) ) ) ; error handling (onerror (if (> @ioerr 0) ( (message (#onerror_msg) (set @default-dest "") ) ) ) (exit (quiet)) ) ; normal installation ( (welcome) ; --- insert your code below --- (set @default-dest (askdir (prompt #executable_askdir_prompt) (help #executable_askdir_help) (default "C:") ) ) (copyfiles (prompt #general_copyfiles_prompt @default-dest) (help "") (source "MyNotes") (infos) (dest @default-dest) (confirm) (optional "fail") ) (set #result (askbool (prompt #documentation_askbool_prompt) (help #documentation_askbool_help) (choices #general_askbool_yes ;1 #general_askbool_no ;0 ) (default 1) ) ) (if (= #result 1) ;Yes ( (set #result (askoptions (prompt #documentation_askoptions_prompt) (help #documentation_askoptions_help) (choices "Deutsch" "English" ) (default 0) ) ) (set #firstchoice (NOT (IN #result 0))) (set #secondchoice (NOT (IN #result 1))) (if #firstchoice then ( (set @default-dest (askdir (prompt #german_doc_askdir_prompt) (help #german_doc_askdir_help) (default "HELP:Deutsch") ) ) (copyfiles (prompt #general_copyfiles_prompt @default-dest) (help #documentation_copyfiles_help) (source "Help/Deutsch") (all) (dest @default-dest) (confirm) (optional "fail") ) ) ) (if #secondchoice then ( (set @default-dest (askdir (prompt #english_doc_askdir_prompt) (help #english_doc_askdir_help) (default "HELP:English") ) ) (copyfiles (prompt #general_copyfiles_prompt @default-dest) (help #documentation_copyfiles_help) (source "Help/English") (all) (dest @default-dest) (confirm) (optional "fail") ) ) ) ) ) (set #result (askbool (prompt #catalogs_askbool_prompt) (help #catalogs_askbool_help) (choices #general_askbool_yes ;1 #general_askbool_no ;0 ) (default 1) ) ) (if (= #result 1) ;Yes ( (set #result (askoptions (prompt #catalogs_askoptions_prompt) (help #catalogs_askoptions_help) (choices "Deutsch" ;"Zwei" ;"Drei" ) (default 0) ) ) (set #firstchoice (NOT (IN #result 0))) ;(set #secondchoice (NOT (IN #result 1))) ;(set #thirdchoice (NOT (IN #result 2))) ;(if #firstchoice then (message "Nr.1 selektiert !")) ;(if #secondchoice then (message "Nr.2 selektiert !")) ;(if #thirdchoice then (message "Nr.3 selektiert !")) (if #firstchoice then ; word ´then must be provided ! else error ( (set @default-dest (askdir (prompt #german_catalog_askdir_prompt) (help #german_catalog_askdir_help) (default "LOCALE:Catalogs/Deutsch") ) ) (copyfiles (prompt #general_copyfiles_prompt @default-dest) (help #german_catalog_copyfiles_help) (source "Catalogs/Deutsch/MyNotes.catalog") (dest @default-dest) (confirm) (optional "fail") ) ) ) ) ) (set @default-dest "") (message #translation_msg) ; --- end of your code --- (exit) )