home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / cdrom / burnit_demo / install_burnit < prev    next >
Text File  |  1996-11-13  |  5KB  |  262 lines

  1. ;
  2. ; $VER: Install BurnItDemo V1.01 (13.11.1996)
  3. ; This Install-script contains to BurnItDemo V1.07 ©1996 by DnS
  4. ;
  5. (if (= (exists "Env:Language") 1)
  6.     ; GetEnv reports "String too long" if the variable doesn't exist! :(
  7.     (set @language (getenv "language"))
  8. )
  9.  
  10. ;**************************************************************************
  11. ; Procedures
  12. (procedure copy-catalog
  13.     (set catalog
  14.         (tackon "Catalogs"
  15.         (tackon language "BurnIt.catalog")
  16.         )
  17.     )
  18.     (set destination (tackon "Locale:Catalogs" language))
  19.  
  20.     (copyfiles
  21.         (prompt (#copy catalog destination))
  22.         (source catalog)
  23.         (dest   destination)
  24.         (help   @copyfiles-help)
  25.     )
  26. )
  27.  
  28. ;**************************************************************************
  29. ; English Installation
  30.  
  31. (set default-lang 1)
  32.  
  33. (set #bad-kick
  34.     "You must have AmigaOS Release 3.0 or newer to use BurnIt."
  35. )
  36.  
  37. (set #bad-cpu
  38.     "You must have a 68020 CPU or biger to use BurnIt."
  39. )
  40.  
  41. (set #welcome
  42.     (cat
  43.         "\n\n\nWelcome to the BurnItDemo installation.\n\n"
  44.         "   BurnIt ©1996, DnS."
  45.     )
  46. )
  47.  
  48. (set #install-parts "Please select the parts you wish to install")
  49.  
  50. (set #item-BurnIt "BurnIt")
  51.  
  52. (set #item-BurnIt-guide "BurnIt_E.guide")
  53.  
  54. (set #item-locale "Translations")
  55.  
  56. (set #where-BurnIt
  57.     (cat
  58.         "Where do you wish to install BurnIt.\n The directory 'BurnIt' will be created if it is not there."
  59.     )
  60. )
  61.  
  62. (set #which-language "Which languages should be installed?")
  63.  
  64. (set #copy "Copying %s to %s...")
  65.  
  66. (set #help "no help available...")
  67.  
  68. (set #regis "BurnIt Registration")
  69.  
  70. ;**************************************************************************
  71. ; Deutsche Installation
  72.  
  73. (if (= @language "deutsch")
  74.     (
  75.         (set default-lang 2)
  76.  
  77.         (set #bad-kick
  78.             (cat
  79.                 "Tut mir Leid!\n"
  80.                 "Aber Sie müßen AmigaOS Release 3.0 oder neur haben für BurnIt."
  81.             )
  82.         )
  83.         (set #bad-cpu
  84.             (cat
  85.                 "Tut mir Leid!\n"
  86.                 "Aber Sie müßen eine 68020 CPU oder größer haben für BurnIt."
  87.             )
  88.         )
  89.         (set #welcome
  90.             (cat
  91.                 "\n\n\nWillkommen zu der Installation von BurnItDemo.\n\n"
  92.                 "BurnIt ©1996 DnS."
  93.             )
  94.         )
  95.  
  96.         (set #install-parts "Wählen Sie bitte die Teile, die Sie installieren wollen.")
  97.  
  98.         (set #item-BurnIt "BurnIt")
  99.  
  100.         (set #item-BurnIt-guide "BurnIt_D.guide")
  101.  
  102.         (set #item-locale "Kataloge")
  103.  
  104.         (set #where-BurnIt "Wo wollen sie BurnIt installieren ?\n Ein Verzeichnis 'BurnIt' wird erstellt.")
  105.  
  106.         (set #which-language "Welche Sprachen sollen installiert werden?")
  107.  
  108.         (set #copy "Kopiere %s nach %s...")
  109.  
  110.         (set #help "Keine Hilfe verfügbar...")
  111.  
  112.         (set #regis "BurnIt registrieren...")
  113.  
  114.     )
  115. )
  116.  
  117. ;**************************************************************************
  118. ; the installaion script
  119.  
  120. (set @default-dest "")
  121.  
  122. ; Check Kickstart version. Exit if not at least 3.0
  123. (if (< (/ (getversion) 65536) 39)
  124.         (abort #bad-kick)
  125. )
  126.  
  127. ; Check CPU. Exit if < 60020
  128. (if (patmatch "68020" (database "cpu"))
  129.         (abort #bad-cpu)
  130. )
  131.  
  132. (message #welcome)
  133.  
  134. (welcome)
  135.  
  136. (set install-files
  137.     (askoptions
  138.         (prompt #install-parts)
  139.         (help   @askoptions-help)
  140.         (choices
  141.             #item-BurnIt
  142.             #item-BurnIt-guide
  143.             #item-locale
  144.         )
  145.         (default 7)
  146.     )
  147. )
  148.  
  149. (if (IN install-files 0)
  150.     (set BurnIt-dest
  151.         (askdir
  152.             (prompt  #where-BurnIt)
  153.             (help    @askdir-help)
  154.             (default "Work:")
  155.         )
  156.     )
  157. )
  158.  
  159. (set where BurnIt-dest)
  160.  
  161. (if
  162.     (<
  163.         (exists
  164.             (tackon BurnIt-dest "BurnIt")
  165.         )
  166.     2)
  167.     (makedir
  168.         (tackon BurnIt-dest "BurnIt")
  169.         (infos)
  170.     )
  171. )
  172.  
  173. (set where (tackon BurnIt-dest "BurnIt"))
  174. (set @default-dest where)
  175.  
  176. (if (IN install-files 1)
  177.     (set guide-dest @default-dest)
  178. )
  179.  
  180. (set languages 0)
  181.  
  182. (if (IN install-files 2)
  183.     (set lang
  184.         (askoptions
  185.             (prompt  #which-language)
  186.             (help    @askoptions-help)
  187.             (choices
  188.                 "English"
  189.                 "Deutsch"
  190.                 "Nederlands"
  191.             )
  192.             (default default-lang)
  193.         )
  194.     )
  195. )
  196.  
  197. ; And now do the actual installation
  198.  
  199. (complete 0)
  200.  
  201. (if (IN install-files 0)
  202.     (copyfiles
  203.         (prompt (#copy "BurnIt" @default-dest))
  204.         (source "BurnIt")
  205.         (dest   @default-dest)
  206.         (help   @copyfiles-help)
  207.         (noposition)
  208.         (infos)
  209.         (confirm)
  210.     )
  211. )
  212.  
  213. (if (IN install-files 0)
  214.     (copylib
  215.         (prompt (#copy "asyncio.library" "Libs:"))
  216.         (help @copylib-help)
  217.         (source "asyncio.library")
  218.         (dest "Libs:")
  219.         (confirm)
  220.     )
  221. )
  222.  
  223. (complete 50)
  224.  
  225. (if (IN install-files 1)
  226.     (
  227.         (copyfiles
  228.             (prompt (#copy #item-BurnIt-guide guide-dest))
  229.             (source #item-BurnIt-guide)
  230.             (help   @copyfiles-help)
  231.             (dest   guide-dest)
  232.             (newname "BurnIt.guide")
  233.             (infos)
  234.             (noposition)
  235.             (confirm)
  236.         )
  237.     )
  238. )
  239.  
  240. (complete 75)
  241.  
  242. (if (IN install-files 2)
  243.     (
  244.         (if (IN lang 1)
  245.             (
  246.                 (set language "Deutsch")
  247.                 (copy-catalog)
  248.             )
  249.         )
  250.         (if (IN lang 2)
  251.             (
  252.                 (set language "Nederlands")
  253.                 (copy-catalog)
  254.             )
  255.         )
  256.     )
  257. )
  258. (set BurnIticon-dest (tackon @default-dest "BurnIt"))
  259.  
  260. (complete 100)
  261. (exit)
  262.