home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / CDRom / lfc-bit!.dms / in.adf / Install_BurnIt < prev   
Encoding:
Text File  |  1996-09-18  |  4.8 KB  |  289 lines

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