home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 10 / amigaformatcd10.iso / -readerstuff- / peter_hutchison / hp_drivers.lzx / LJ4Boost / LJ4Boost-Install < prev    next >
Text File  |  1996-11-27  |  15KB  |  291 lines

  1. ; -------------------------------------------------------------------------
  2. ; $VER: LJ4Boost-Install 1.21 (08.03.96)
  3. ;
  4. ; Installer-Script for LJ4Boost V1.2
  5. ; Copyright © 1995-96 by Oliver Hitz
  6.  
  7. ; TEXTS -------------------------------------------------------------------
  8.  
  9. (if (= @language "deutsch")
  10.     (
  11.       (set #lj4b-copy "Kopieren")
  12.       (set #lj4b-skip "Überspringen")
  13.       (set #lj4b-create "Anlegen")
  14.       (set #lj4b-title (cat "\nLJ4Boost Installation."
  15.                             "\nInstalliert LJ4Boost auf Ihrem Amiga."
  16.                             "\n"
  17.                             "\n© 1995-96 Oliver Hitz"
  18.                             "\nAlle Rechte vorbehalten"))
  19.       (set #lj4b-icons "\nWelche Art Icons sollen installiert werden?")
  20.       (set #lj4b-icons-help "Falls Sie MagicWB installiert haben, können Sie hier direkt passende Icons zu LJ4Boost installieren. (MagicWB ist Copyright © 1992-1994 Martin Huttenloher)")
  21.       (set #lj4b-driver "\nDruckertreiber nach DEVS:Printers kopieren?")
  22.       (set #lj4b-driver-help "Der Druckertreiber ist das Hauptprogramm von LJ4Boost. Es wird zu den anderen Druckertreibern, die sich im Directory DEVS:Printers befinden, kopiert.")
  23.       (set #lj4b-prefs "\nPreferences Einsteller installieren?")
  24.       (set #lj4b-prefs-help "Der Preferences Einsteller dient dazu, Einstellungen zu machen, die im normalen Drucker-Einsteller nicht gemacht werden können und NUR für LJ4Boost gelten. Ohne diesen Einsteller kann nicht die ganze Stärke von LJ4Boost genutzt werden. Der Einsteller wird in der Preferences-Schublade Ihrer Workbench installiert.")
  25.       (set #lj4b-prefscat "\nWählen Sie die zu installierenden Sprachen.")
  26.       (set #lj4b-prefscat-help "Leider sind im Moment nur drei Sprachen verfügbar. Dies wird sich jedoch in Zukunft (hoffentlich) noch ändern.")
  27.       (set #lj4b-addon "\nWählen Sie weitere zu installierende Komponenten.")
  28.       (set #lj4b-addon-help "Dokumentation: Die Dokumentation zu LJ4Boost im AmigaGuide-Format.\nRegistrierprogramm: Programm, um LJ4Boost zu registrieren.")
  29.       (set #lj4b-addon-choice-1 "Dokumentation")
  30.       (set #lj4b-addon-choice-2 "Registrierprogramm")
  31.       (set #lj4b-drawer "\nNeue Schublade erstellen?")
  32.       (set #lj4b-drawer-help "Es ist empfehlenswert, eine neue Schublade zu erstellen, in die die ausgewählten Teile dann kopiert werden.")
  33.       (set #lj4b-drawer-where "\nWo möchten Sie die neue Schublade anlegen?")
  34.       (set #lj4b-dir "\nWohin möchten Sie die ausgewählten Komponenten kopieren?")
  35.       (set #lj4b-wrong-kick "\nEntschuldigen Sie, aber LJ4Boost funktioniert nur mit Kickstart 2.0 oder höher!")
  36.       (set #lj4b-registered "\nHerzlichen Dank für Ihre Registration!\n\nDiese Version kann von Ihnen ohne Einschränkungen genutzt werden.")
  37.       (set #lj4b-registered-ask "\nKein Keyfile gefunden. Falls Sie registrierter Benutzer sind, jedoch Ihr Keyfile noch nicht installiert haben, wählen Sie bitte `Keyfile Installieren'.")
  38.       (set #lj4b-registered-ask-help "Dies ist die erste Version von LJ4Boost, die unregistriert nur eingeschränkt brauchbar ist. Deshalb könnte es sein, dass Sie Ihr Keyfile noch nicht installiert haben. Mit `Installiere Keyfile' können Sie dies nachholen.")
  39.       (set #lj4b-registered-ask-1 "Installiere Keyfile")
  40.       (set #lj4b-registered-ask-2 "Weiter")
  41.       (set #lj4b-insert-disk "\nLegen Sie bitte Ihre original `LJ4Boost' Diskette ein.")
  42.       (set #lj4b-insert-disk-help "Nach Ihrer Registration haben Sie eine Diskette erhalten, auf der sich das Keyfile befindet. Legen Sie jetzt diese Diskette ein.")
  43.       (set #lj4b-register "\nZur Erinnerung: `LJ4Boost' ist SHAREWARE. Wenn Sie das Programm benutzen, müssen Sie sich registrieren lassen.")
  44.       (set #lj4b-exit "\nLJ4Boost ist jetzt installiert! Um LJ4Boost brauchen zu können starten Sie jetzt Ihren Drucker-Einsteller und wählen Sie als Druckertreiber `LJ4Boost'.")
  45.       (set default_language 1)
  46.     )
  47.     (
  48.       (set #lj4b-copy "Copy")
  49.       (set #lj4b-skip "Skip This Part")
  50.       (set #lj4b-create "Create")
  51.       (set #lj4b-title (cat "\nLJ4Boost Installation Script."
  52.                             "\nThis script installs LJ4Boost on your Amiga."
  53.                             "\n"
  54.                             "\n© 1995-96 by Oliver Hitz"
  55.                             "\nAll rights reserved."))
  56.       (set #lj4b-icons "\nInstall what style of icons?")
  57.       (set #lj4b-icons-help "This option is for people that have installed MagicWB. Instead of copying MagicWB icons over the original icons, you may select MagicWB here, and a special set of icons, especially designed for LJ4Boost will be installed. NOTE: MagicWB is Copyright © 1992-1994 by Martin Huttenloher.")
  58.       (set #lj4b-driver "Copy the printer driver to DEVS:Printers?")
  59.       (set #lj4b-driver-help "The printer driver is the main program of this package. It is copied to the other printer drivers which are in the directory DEVS:Printers.")
  60.       (set #lj4b-prefs "Install the preferences editor?")
  61.       (set #lj4b-prefs-help "The preferences editor lets you configure LJ4Boost. Without it many features LJ4Boost offers cannot be used. The preferences editor is installed in the Preferences drawer of your Workbench.")
  62.       (set #lj4b-prefscat "Select which catalog files you would like to install.")
  63.       (set #lj4b-prefscat-help "Unfortunately there are only three languages available at the moment. But this will (hopefully) change in future versions. If your language is not supported and you know how CatComp works, you can of course make your own catalog files. The sources for CatComp are in the directory Locale/ of this distribution.")
  64.       (set #lj4b-addon "What other components would you like to install?")
  65.       (set #lj4b-addon-help "Documentation: Documentation in AmigaGuide format.\nRegistration Tool: Program that allows you to register LJ4Boost.")
  66.       (set #lj4b-addon-choice-1 "Documentation")
  67.       (set #lj4b-addon-choice-2 "Registration Tool")
  68.       (set #lj4b-drawer "Create a new drawer?")
  69.       (set #lj4b-drawer-help "It is useful to create a new drawer where the selected components will then be installed.")
  70.       (set #lj4b-drawer-where "Where would you like to create the new drawer?")
  71.       (set #lj4b-dir "\nWhere would you like to copy the selected components?")
  72.       (set #lj4b-wrong-kick "\nSorry, LJ4Boost needs Kickstart 2.0 or higher!")
  73.       (set #lj4b-registered "\nThank you very much for registering LJ4Boost!\n\nYou can use this version without restrictions.")
  74.       (set #lj4b-registered-ask "\nCould not find a keyfile. If you are registered user, but you don't have your keyfile installed yet, choose `Install Keyfile'.")
  75.       (set #lj4b-registered-ask-help "This is the first version of LJ4Boost that has restrictions in the unregistered version. So it could be possible that some registered users don't have their keyfile installed yet. Using `Install Keyfile' you are able to install it right now.")
  76.       (set #lj4b-registered-ask-1 "Install Keyfile")
  77.       (set #lj4b-registered-ask-2 "Go On")
  78.       (set #lj4b-insert-disk "\nPlease insert your original `LJ4Boost' disk.")
  79.       (set #lj4b-insert-disk-help "After registering you should have got a disk with your personal keyfile. Please insert this disk now.")
  80.       (set #lj4b-register "\nReminder: `LJ4Boost' is SHAREWARE. Using it means registering.")
  81.       (set #lj4b-exit "\nLJ4Boost is now installed! To use LJ4Boost start your Printer Preferences now and select the printer driver `LJ4Boost'.")
  82.       (set default_language 0)
  83.     )
  84. )
  85.  
  86. ; VARS --------------------------------------------------------------------
  87.  
  88. (set sourcePath (expandpath (pathonly @icon)))
  89. (set ver (/ (getversion "exec.library" (resident)) 65536))
  90.  
  91. ; MAIN --------------------------------------------------------------------
  92.  
  93. (complete 0)
  94.  
  95. (if (> ver 36)
  96.     (
  97.       ; Display welcome message
  98.       (message #lj4b-title)
  99.       (user 1)
  100.       (welcome)
  101.  
  102.       ; Ask for style of icons
  103.       (set icons (askchoice (prompt #lj4b-icons)
  104.                             (help #lj4b-icons-help)
  105.                             (choices "Original Workbench" "MagicWB")
  106.                             (default 0)
  107.                  )
  108.       )
  109.  
  110.       ; Check if registered user
  111.       (set registered (exists "LIBS:lj4boost.library"))
  112.  
  113.       ; Install the printer driver
  114.       (if (askbool (prompt #lj4b-driver)
  115.                    (help #lj4b-driver-help)
  116.                    (choices #lj4b-copy #lj4b-skip)
  117.                    (default 1)
  118.           )
  119.           (
  120.             (copyfiles (source (tackon sourcePath "Devs/Printers/LJ4Boost"))
  121.                        (dest "DEVS:Printers")
  122.                        (noposition)
  123.                        (infos)
  124.             )
  125.             (if (= icons 1)
  126.                 (copyfiles (source (tackon sourcePath "MWBIcons/LJ4Boost.info"))
  127.                            (dest "DEVS:Printers")
  128.                            (noposition)
  129.                 )
  130.             )
  131.           )
  132.       )
  133.  
  134.       (complete 25)
  135.  
  136.       ; Install preferences editor
  137.       (if (askbool (prompt #lj4b-prefs)
  138.                    (help #lj4b-prefs-help)
  139.                    (choices #lj4b-copy #lj4b-skip)
  140.                    (default 1)
  141.           )
  142.           (
  143.             (copyfiles (source (tackon sourcePath "Prefs/LJ4Boost"))
  144.                        (dest "SYS:Prefs")
  145.                        (noposition)
  146.                        (infos)
  147.             )
  148.             (if (= icons 1)
  149.                 (copyfiles (source (tackon sourcePath "MWBIcons/LJ4Boost-Prefs.info"))
  150.                            (dest "SYS:Prefs")
  151.                            (newname "LJ4Boost.info")
  152.                            (noposition)
  153.                 )
  154.             )
  155.             (complete 45)
  156.  
  157.             (set catalogs (askoptions (prompt #lj4b-prefscat)
  158.                                       (help #lj4b-prefscat-help)
  159.                                       (choices "Deutsch"
  160.                                                "Français"
  161.                                                "Italiano")
  162.                                       (default default_language)
  163.                           )
  164.             )
  165.             (set n 0)
  166.             (while (set catalog (select n "deutsch"
  167.                                           "français"
  168.                                           "italiano"
  169.                                           ""
  170.                                 )
  171.                    )
  172.                    (
  173.                      (if (in catalogs n)
  174.                          (
  175.                            (copyfiles (source (tackon sourcePath (tackon "Locale/Catalogs" (tackon catalog "lj4boostprefs.catalog"))))
  176.                                       (dest (tackon "LOCALE:Catalogs" catalog))
  177.                                       (noposition)
  178.                            )
  179.                          )
  180.                      )
  181.                      (set n (+ n 1))
  182.                    )
  183.             )
  184.           )
  185.       )
  186.  
  187.       (complete 50)
  188.  
  189.       ; Add-Ons
  190.       (set add-ons (askoptions (prompt #lj4b-addon)
  191.                                (help #lj4b-addon-help)
  192.                                (choices #lj4b-addon-choice-1 #lj4b-addon-choice-2)
  193.                                (default 3)
  194.                    )
  195.       )
  196.       (if (<> add-ons 0)
  197.           (
  198.             (if (askbool (prompt #lj4b-drawer)
  199.                          (help #lj4b-drawer-help)
  200.                          (choices #lj4b-create #lj4b-skip)
  201.                          (default 1)
  202.                 )
  203.                 (
  204.                   (set main-dest (askdir (prompt #lj4b-drawer-where)
  205.                                          (help @askdir-help)
  206.                                          (default "SYS:Tools")
  207.                                   )
  208.                   )
  209.                   (makedir (tackon main-dest "LJ4Boost"))
  210.                   (if (= icons 1)
  211.                       (copyfiles (source (tackon sourcePath "MWBIcons/Drawer.info"))
  212.                                  (dest main-dest)
  213.                                  (newname "LJ4Boost.info")
  214.                                  (noposition)
  215.                       )
  216.                   )
  217.                   (set main-dest (tackon main-dest "LJ4Boost"))
  218.                 )
  219.                 (set main-dest (askdir (prompt #lj4b-dir)
  220.                                        (help @askdir-help)
  221.                                        (default "SYS:Tools")
  222.                                )
  223.                 )
  224.             )
  225.             (if (in add-ons 0)
  226.                 (
  227.                   (copyfiles (source (tackon sourcePath "LJ4Boost.guide"))
  228.                              (dest main-dest)
  229.                              (infos)
  230.                              (noposition)
  231.                   )
  232.                   (if (= icons 1)
  233.                       (copyfiles (source (tackon sourcePath "MWBIcons/LJ4Boost.guide.info"))
  234.                                  (dest main-dest)
  235.                                  (newname "LJ4Boost.guide.info")
  236.                                  (noposition)
  237.                       )
  238.                   )
  239.                 )
  240.             )
  241.             (if (in add-ons 1)
  242.                 (
  243.                   (copyfiles (source (tackon sourcePath "LJ4Boost-Register"))
  244.                              (dest main-dest)
  245.                              (noposition)
  246.                              (infos)
  247.                   )
  248.                   (if (= icons 1)
  249.                       (copyfiles (source (tackon sourcePath "MWBIcons/LJ4Boost-Register.info"))
  250.                                  (dest main-dest)
  251.                                  (noposition)
  252.                       )
  253.                   )
  254.                 )
  255.             )
  256.           )
  257.       )
  258.  
  259.       (complete 99)
  260.  
  261.       ;If registered user, thank him, if not ask for keyfile...
  262.       (if (= registered 1)
  263.           (message #lj4b-registered)
  264.           (if (askbool (prompt #lj4b-registered-ask)
  265.                        (help #lj4b-registered-ask-help)
  266.                        (choices #lj4b-registered-ask-1 #lj4b-registered-ask-2)
  267.                        (default 1)
  268.               )
  269.               (
  270.                 (askdisk (prompt #lj4b-insert-disk)
  271.                          (help #lj4b-insert-disk-help)
  272.                          (dest "LJ4Boost")
  273.                 )
  274.                 (copyfiles (source "LJ4Boost:Libs/lj4boost.library")
  275.                            (dest "LIBS:")
  276.                 )
  277.               )
  278.               (
  279.                 (message #lj4b-register)
  280.               )
  281.           )
  282.       )
  283.  
  284.       (set @default-dest "DEVS:Printers")
  285.       (complete 100)
  286.       (exit #lj4b-exit)
  287.  
  288.     )
  289.     (abort #lj4b-wrongkick)
  290. )
  291.