home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 105 / af105sub.adf / Beyondthedark.LZX / BeyondTheDark / Install < prev   
Text File  |  2003-09-17  |  6KB  |  297 lines

  1. ;
  2. ; Beyond The Dark 1.10 - Install Script
  3. ;
  4. ; (c) 1995 by Matthias Scheler <tron@lyssa.owl.de>
  5. ;
  6.  
  7. (set ProductName "Beyond The Dark")
  8. (set ProductVers "1.10")
  9.  
  10. (set MUIName "muimaster.library")
  11. (set MUIVersion 8)
  12. (set MUIRelease "2.1")
  13.  
  14. (set BTDDrawer "BeyondTheDark" )
  15.  
  16. (if (= @language "english")
  17.  (
  18.   (set #install "Installing ")
  19.  
  20.   (set #wrong_os
  21.    (cat
  22.     "Looks like you are running WB 1.3. If this is true, "
  23.     "please consider to update to WB 2.04 or newer real soon. "
  24.     "\"\%s\" does not work with WB 1.3 and below."
  25.    )
  26.   )
  27.  
  28.   (set #wrong_mui
  29.    (cat
  30.     ProductName " needs at least " MUIName " version " MUIVersion
  31.     " (Release " MUIRelease "). You seem to have installed version %ld.\n\n"
  32.     "Of course you can continue the installation, but don't forget to "
  33.     "update MUI later."
  34.    )
  35.   )
  36.   (set #no_mui
  37.    (cat
  38.     "You don't seem to have MUI installed on your system. Without MUI Release "
  39.     MUIRelease " or newer you won't be able to run the preferences "
  40.     "program.\n\nIf you don't like MUI we are willing to offer you support "
  41.     "to write a preferences program that does not require MUI.\n\n"
  42.     "Of course you can continue the installation, but don't forget to "
  43.     "install MUI later."
  44.    )
  45.   )
  46.  
  47.   (set #selectplace
  48.    (cat
  49.     "Please select a place for %s. "
  50.     "A directory \"%s\" will be created there."
  51.    )
  52.   )
  53.   (set #selectplacehelp
  54.    (cat
  55.     "About 200KB is required for " ProductName ". "
  56.     "All files will be copied into a single directory."
  57.    )
  58.   )
  59.  
  60.   (set #commodity "the Commodity" )
  61.  
  62.   (set #prefs "the Preferences Program")
  63.   (set #catalogs "the Catalog files")
  64.  
  65.   (set #modules "the Blanker modules")
  66.  
  67.   (set #startup
  68.    (cat
  69.     "To be able to use %s the file \"S:User-Startup\" must be modified. "
  70.     "The following commands will be added:\n\n%s"
  71.    )
  72.   )
  73.  
  74.   (set #docchoice "Which documentation do you want to install?")
  75.   (set #docchoice1 "English")
  76.   (set #docchoice2 "German")
  77.   (set #docdefault 0)
  78.  
  79.   (set #documentation "the Documentation")
  80.  )
  81. )
  82.  
  83. (if (= @language "deutsch")
  84.  (
  85.   (set #install "Installiere ")
  86.  
  87.   (set #wrong_os
  88.    (cat
  89.     "Sie benutzen vermutlich WB 1.3. Wenn das zutrifft, sollten "
  90.     "Sie möglichst bald ein Update auf WB 2.04 oder neuer durchführen. "
  91.     "\"\%s\" funktioniert nicht mit WB 1.3 oder älter."
  92.    )
  93.   )
  94.  
  95.   (set #wrong_mui
  96.    (cat
  97.     ProductName " benötigt mindestens " MUIName " Version " MUIVersion
  98.     " (Release " MUIRelease "). Sie haben aber offensichtlich nur "
  99.     "Version %ld installiert.\n\nNatürlich können Sie mit der Installation "
  100.     "fortfahren, aber vergessen Sie nicht, später eine neuere Version "
  101.     "von MUI zu installieren."
  102.    )
  103.   )
  104.   (set #no_mui
  105.    (cat
  106.     "Sie haben scheinbar MUI nicht auf Ihrem System installiert. Ohne "
  107.     "MUI Release " MUIRelease " oder neuer können Sie den Voreinsteller "
  108.     "nicht benutzen.\n\n Wenn Sie MUI nicht mögen, werden wir Sie "
  109.     "gerne bei der Entwicklung eines Voreinsteller, der ohne MUI auskommt, "
  110.     "unterstützen.\n\nNatürlich können Sie mit der Installation "
  111.     "fortfahren, aber vergessen Sie nicht, später MUI zu installieren."
  112.    )
  113.   )
  114.  
  115.   (set #selectplace
  116.    (cat
  117.     "Bitte wählen Sie einen Platz für %s aus. "
  118.     "Dort wird ein Verzeichnis \"%s\" angelegt."
  119.    )
  120.   )
  121.   (set #selectplacehelp
  122.    (cat
  123.     "Ungefähr 200KB werden für " ProductName " benötigt. "
  124.     "Alle Dateien werden in einem einzigen Verzeichnis abgelegt."
  125.    )
  126.   )
  127.   (set #commodity "das Commodity" )
  128.  
  129.   (set #prefs "den Voreinsteller")
  130.   (set #catalogs "die Sprachdateien")
  131.  
  132.   (set #modules "die Blanker-Module")
  133.  
  134.   (set #startup
  135.    (cat
  136.     "Um %s benutzen zu können, muß die Datei \"S:User-Startup\" modifiziert "
  137.     "werden. Die folgenden Befehle werden hinzugefügt:\n\n%s"
  138.    )
  139.   )
  140.  
  141.   (set #docchoice "Welche Anleitung wollen Sie installieren?")
  142.   (set #docchoice1 "Englisch")
  143.   (set #docchoice2 "Deutsch")
  144.   (set #docdefault 1)
  145.  
  146.   (set #documentation "die Dokumentation")
  147.  )
  148. )
  149.  
  150. (set OSVersion (/ (getversion) 65536))
  151.  
  152. (transcript #install ProductName " " ProductVers " ...")
  153.  
  154. (complete 0)
  155.  
  156. ; Check OS version
  157.  
  158. (if (< OSVersion 37)
  159.  (
  160.   (abort (#wrong_os ProductName))
  161.  )
  162. )
  163.  
  164. ; Check for MUI
  165.  
  166. (if (exists (tackon "LIBS:" MUIName))
  167.  (
  168.   (set Version (/ (getversion (tackon "LIBS:" MUIName)) 65536))
  169.   (if (< Version MUIVersion)
  170.    (message (#wrong_mui Version))
  171.   )
  172.  )
  173.  (message #no_mui)
  174. )
  175.  
  176. ; Select place for our directory
  177.  
  178. (set BTDDir
  179.  (tackon
  180.   (askdir 
  181.    (prompt (#selectplace ProductName BTDDrawer))
  182.    (help (#selectplacehelp ProductName ProductName) @askdir-help)
  183.    (default "Work:")
  184.    (newpath)
  185.   )
  186.   BTDDrawer
  187.  )
  188. )
  189.  
  190. (complete 10)
  191.  
  192. ; Create our directory
  193.  
  194. (if (NOT (exists BTDDir))
  195.  (makedir 
  196.   (BTDDir)
  197.   (infos)
  198.  )
  199. )
  200.  
  201. (run (cat "Assign BTD: \"" BTDDir "\""))
  202.  
  203. (complete 20)
  204.  
  205. ; Commodity
  206.  
  207. (copyfiles
  208.  (prompt #install #commodity "...")
  209.  (source "Binary")
  210.  (pattern "BTD-CX(%|.info)")
  211.  (help @copyfiles-help)
  212.  (confirm)
  213.  (dest BTDDir)
  214. )
  215.  
  216. (complete 35)
  217.  
  218. ; Preferences Program and the catalogs
  219.  
  220. (copyfiles
  221.  (prompt #install #prefs "...")
  222.  (source "Binary")
  223.  (pattern "BTD(%|.info)")
  224.  (help @copyfiles-help)
  225.  (confirm)
  226.  (dest BTDDir)
  227. )
  228.  
  229. (complete 45)
  230.  
  231. (copyfiles
  232.  (prompt #install #catalogs "...")
  233.  (source "Binary/Catalogs")
  234.  (pattern "#?")
  235.  (help @copyfiles-help)
  236.  (confirm)
  237.  (dest (tackon BTDDir "Catalogs"))
  238. )
  239.  
  240. (complete 50)
  241.  
  242. ; Modules
  243.  
  244. (copyfiles
  245.  (prompt #install #modules "...")
  246.  (source "Binary/Blankers")
  247.  (pattern "#?.btd")
  248.  (help @copyfiles-help)
  249.  (confirm)
  250.  (dest (tackon BTDDir "Blankers"))
  251. )
  252.  
  253. (complete 70)
  254.  
  255. ; User-Startup
  256.  
  257. (set Cmd (cat "Assign BTD: \"" BTDDir "\"\nRun >NIL: BTD:BTD-CX >NIL:"))
  258.  
  259. (startup
  260.  (prompt (#startup ProductName Cmd))
  261.  (ProductName)
  262.  (help @startup-help)
  263.  (command Cmd)
  264. )
  265.  
  266. (complete 90)
  267.  
  268. ; Documentation
  269.  
  270. (set Documentation
  271.  (askchoice
  272.   (prompt #docchoice)
  273.   (choices
  274.    #docchoice1
  275.    #docchoice2
  276.   )
  277.   (help @askchoice-help)
  278.   (default #docdefault)
  279.  )
  280. )
  281.  
  282. (if (= Documentation 0)
  283.  (set DocSourceDir "English")
  284.  (set DocSourceDir "Deutsch")
  285. )
  286.  
  287. (copyfiles
  288.  (prompt #install #documentation "...")
  289.  (source (tackon "Documentation" DocSourceDir))
  290.  (pattern "#?.guide(%|.info)")
  291.  (help @copyfiles-help)
  292.  (confirm)
  293.  (dest BTDDir)
  294. )
  295.  
  296. (complete 100)
  297.