home *** CD-ROM | disk | FTP | other *** search
- ; Installer installation script for MUIScreenMode
- ;$VER: Install 1.002 (03 May 1995)
-
- (set @default-dest "")
-
- (set programme "MUIScreenMode")
- (set progver "1.2")
- (set helpdir "HELP:")
-
- ;================================================================================
- ; English strings
-
- (set #bad-kick
- (cat "You must have Kickstart 3.0 or higher installed to use MUIScreenMode!")
- )
-
- (set #install
- (cat "\n" programme " installation\n\n\n"
- "This script installs " programme " " progver "\n"
- "on your Amiga.\n\n\n\n"
- programme " © 1995 Cyril DEBLE\n"
- "All rights reserved\n\n"
- "(MUI © Stephan Stuntz)")
- )
-
-
- (set #where
- (cat "In wich drawer should " programme " be installed?")
- )
-
- (set #copying
- (cat "Copying " programme )
- )
-
- (set #which-docs
- (cat "\nWhich docs should be installed?")
- )
- (set #which-docs-help
- (cat "\n" programme " support on line help in many language. "
- "A amigaguide file must be copied to your harddisk "
- "for each language supported.\n\n"
- "To reduce the amount of space consumed by the guide "
- "files, you can select to have only the files of specific "
- "languages copied.\n\n"
- "Simply check the boxes of the languages you wich to have "
- "available on your system.\n\n")
- )
-
-
- ;================================================================================
- ; French strings
-
- (if (= @language "français")
- (
- (set #bad-kick
- (cat "Vous devez posseder le Kickstart 3.0 ou superieur pour utiliser " programme "!")
- )
-
- (set #install
- (cat "\nInstallation de " programme "\n\n\n"
- "Ce script installe " programme " " progver "\n"
- "sur votre Amiga.\n\n\n\n"
- programme " © 1995 Cyril DEBLE\n"
- "Tous droits réservés\n\n"
- "(MUI © Stephan Stuntz)")
- )
-
-
- (set #where
- (cat "Dans quel tiroir installer " programme " ?")
- )
-
- (set #copying
- (cat "Copie de " programme )
- )
-
- (set #which-docs
- (cat "\nQuelle documentation installer ?")
- )
- (set #which-docs-help
- (cat "\n" programme " a une aide en ligne disponible avec "
- "different langages. "
- "Un fichier amigaguide doit être copié sur votre disque dur "
- "pour chaque langage supporté.\n\n"
- "Pour reduire l'espace pris par les fichiers vous pouvez "
- "selectionner un ou plusieur fichiers de langage spécifique "
- "à copier.\n\n"
- "Cochez simplement la case du langage que vous voulez installer "
- "dans votre systeme.\n\n")
- )
- )
- )
-
- ;================================================================================
- ; make sure we are running under a 3.0 ROM
-
- (if (< (/ (getversion) 65536) 39)
- (
- (abort #bad-kick)
- )
- )
-
- ;================================================================================
- ;
-
- (complete 0)
-
- (message
- (#install)
- )
-
- (welcome)
-
- (set destination
- (askdir
- (prompt #where-catedit)
- (help @askdir-help)
- (default "SYS:Prefs")
- )
- )
-
- (copylib
- (prompt "\n" #copying)
- (help @copylib-help)
- (source programme)
- (dest destination)
- (confirm)
- )
-
- (complete 50)
-
- (if (NOT (exists (tackon destination (cat programme ".info"))))
- (
- (copyfiles
- (source (cat programme ".info"))
- (dest destination)
- )
- )
- )
-
- (complete 55)
-
- (if (NOT (exists "ENVARC:Sys/Def_Prefs.info"))
- (
- (copyfiles
- (source "Env-Archive/Sys/Def_Prefs.info")
- (dest "ENVARC:Sys/")
- )
- )
- )
-
- (complete 60)
-
- (
- (set lang
- (askoptions
- (prompt #which-language)
- (help #which-docs-help @askoptions-help)
- (choices
- "English"
- "Français")
- (default 0)
- )
- )
- (set n 0)
- (while
- (set language
- (select n
- "english"
- "français"
- ""
- )
- )
- (
- (if (IN lang n)
- (
- (makedir (tackon helpdir language))
- (copyfiles
- (source (tackon (tackon "docs/" language) (cat programme ".guide")))
- (dest (tackon helpdir language))
- )
- )
- )
- (set n (+ n 1))
- )
- )
- )
-
- (complete 100)
- (exit)
-