home *** CD-ROM | disk | FTP | other *** search
/ Merciful 3 / Merciful_Release_3.bin / software / l / ljboostv1.02.lha / LJ4Boost / LJ4Boost-Install < prev    next >
Text File  |  1995-04-16  |  5KB  |  172 lines

  1. ; -------------------------------------------------------------------------
  2. ; $VER: LJ4Boost-Install 1.02 (16.04.95)
  3. ;
  4. ; Installer-Script for LJ4Boost V1.02
  5. ; Copyright © 1995 by Oliver Hitz
  6.  
  7. ; TEXTS -------------------------------------------------------------------
  8.  
  9. (set #lj4b-install
  10.   (cat "\nLJ4Boost V1.02\n"
  11.        "Installer Script\n\n"
  12.        "© 1995 by Oliver Hitz\n\n"
  13.        "Click on >Continue< to proceed!\n"
  14.   )
  15. )
  16.  
  17. (set #lj4b-install-help
  18.   (cat "This installer script installs the LJ4Boost Printer Driver Package V1.02\n\n")
  19. )
  20.  
  21. (set #lj4b-driver
  22.   (cat "\nCopy the printer driver to DEVS:Printers?")
  23. )
  24.  
  25. (set #lj4b-driver-help
  26.   (cat "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.\n")
  27. )
  28.  
  29. (set #lj4b-prefs
  30.   (cat "\nCopy the preferences editor to SYS:Prefs?")
  31. )
  32.  
  33. (set #lj4b-prefs-help
  34.   (cat "The preferences editor lets you take control over some special features that this package offers.\n")
  35. )
  36.  
  37. (set #lj4b-prefscat
  38.   (cat "\nSelect which catalog files you would like to install.")
  39. )
  40.  
  41. (set #lj4b-prefscat-help
  42.   (cat "Unfortunately there are only three languages available at the moment. But this will (hopefully) change in future versions.\n")
  43. )
  44.  
  45. (set #lj4b-doc
  46.   (cat "\nInstall the documentation?")
  47. )
  48.  
  49. (set #lj4b-doc-help
  50.   (cat "Sometimes it is useful to have the documentation ready-to-use somewhere on the hard drive. The documentation is NOT needed by the program.")
  51. )
  52.  
  53. (set #lj4b-register
  54.   (cat "\nThe LJ4Boost Printer Driver Package\n"
  55.        "is SHAREWARE. If you use it, you HAVE TO pay\n"
  56.        "for it.\n\n"
  57.        "Do you want to install the Registration-Utility?\n"
  58.        "(It is suggested you install it in the same\n"
  59.        "directory as the docs, because it can be started\n"
  60.        "from the documentation)."
  61.   )
  62. )
  63.  
  64. (set #lj4b-register-help
  65.   (cat "It is strongly recommended to install the Registration-Utility. After you have registered, you can of course delete it...")
  66. )
  67.  
  68. (set #wrong-kick
  69.   (cat "\nSorry, this package needs at least\n"
  70.        "Kickstart version 2.0!\n\n"
  71.   )
  72. )
  73.  
  74. ; VARS --------------------------------------------------------------------
  75.  
  76. (set sourcePath (expandpath (pathonly @icon)))
  77.  
  78. (set ver (/ (getversion "exec.library" (resident)) 65536))
  79.  
  80. ; MAIN --------------------------------------------------------------------
  81.  
  82. (complete 0)
  83. (if (> ver 36)
  84.   (if (askbool (prompt #lj4b-install)
  85.                (help #lj4b-install-help)
  86.                (choices "Continue" "End Installation")
  87.                (default 1)
  88.       )
  89.     (
  90.       (if (askbool (prompt #lj4b-driver)
  91.                    (help #lj4b-driver-help)
  92.                    (choices "Copy" "Skip This Part")
  93.                    (default 1)
  94.           )
  95.           (Copyfiles (source (tackon sourcePath "Devs/Printers/LJ4Boost"))
  96.                      (dest "DEVS:Printers")
  97.                      (infos)
  98.           )
  99.       )
  100.       (complete 25)
  101.       (if (askbool (prompt #lj4b-prefs)
  102.                    (help #lj4b-prefs-help)
  103.                    (choices "Copy" "Skip This Part")
  104.                    (default 1)
  105.           )
  106.           (Copyfiles (source (tackon sourcePath "Prefs/LJ4Boost"))
  107.                      (dest "SYS:Prefs")
  108.                      (infos)
  109.           )
  110.       )
  111.       (complete 40)
  112.       (set catalogs (askoptions (prompt #lj4b-prefscat)
  113.                                 (help #lj4b-prefscat-help)
  114.                                 (choices "Deutsch"
  115.                                          "Français")
  116.                                 (default 0)
  117.                     )
  118.       )
  119.       (set n 0)
  120.       (while (set catalog (select n "deutsch"
  121.                                     "français"
  122.                                     ""
  123.                           )
  124.              )
  125.              (
  126.                 (if (IN catalogs n)
  127.                     (
  128.                       (Copyfiles (source (tackon sourcePath (tackon "Locale/Catalogs" (tackon catalog "lj4boostprefs.catalog"))))
  129.                                  (dest (tackon "LOCALE:Catalogs" catalog))
  130.                       )
  131.                     )
  132.                 )
  133.                 (set n (+ n 1))
  134.              ))
  135.       (complete 50)
  136.       (if (askbool (prompt #lj4b-doc)
  137.                    (help #lj4b-doc-help)
  138.                    (choices "Copy" "Skip This Part")
  139.                    (default 1)
  140.           )
  141.           (Copyfiles (source (tackon sourcePath "LJ4Boost.guide"))
  142.                      (dest (askdir (prompt "Please select a place to the documentation.")
  143.                                    (help @askdir-help)
  144.                                    (default "SYS:Tools")
  145.                            )
  146.                      )
  147.                      (infos)
  148.           )
  149.       )
  150.       (complete 75)
  151.       (if (askbool (prompt #lj4b-register)
  152.                    (help #lj4b-register-help)
  153.                    (choices "Copy" "Skip This Part")
  154.                    (default 1)
  155.           )
  156.           (Copyfiles (source (tackon sourcePath "LJ4Boost-Register"))
  157.                      (dest (askdir (prompt "Please select a place for the Registration-Utility.")
  158.                                    (help @askdir-help)
  159.                                    (default "SYS:Tools")
  160.                            )
  161.                      )
  162.                      (infos)
  163.           )
  164.       )
  165.       (complete 99)
  166.     )
  167.   )
  168.   (abort #wrong-kick)
  169. )
  170. (set @default-dest "DEVS:Printers")
  171.  
  172.