home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 96 / af096sub.adf / reset.LZX / mereset / Install < prev    next >
Text File  |  2002-05-07  |  3KB  |  169 lines

  1. ;
  2. ; Installer-Script for MEReset 2.0
  3. ;    Autor    : Malte Eller
  4. ;    Version    : 1.0
  5. ;    Datum    : 11.01.1997
  6. ;
  7. ;    $VER: Install 1.0 (11.01.1997)
  8. ;
  9. ;**************************************************
  10.  
  11. (set @user-level 1)
  12.  
  13. (if (= @language "deutsch")
  14. (
  15. (set #bad-kick (cat "Leider wird OS2.0 oder höher benötigt"))
  16. (set #askdir1 (cat "Wohin wollen Sie MEReset installieren?\n"
  17. "Dort wird dann eine neue Schubalde angelegt"))
  18. (set #fragetext (cat "Soll ich das Programm auch in die\n"
  19. " WBStartup kopieren?"))
  20. (set #ja (cat "Ja"))
  21. (set #nein (cat "Nein"))
  22. (set #confirmt (cat "Was soll ich instalieren?"))
  23. (set #fragetextL (cat "Welche Sprachen sollen installiert werden?"))
  24. (set #CLI_Ver (cat "Soll ich die CLI/Shell-Version installieren?"))
  25. )
  26.  
  27. (
  28. (set #bad-kick (cat "I need OS2.0 or higher"))
  29. (set #askdir1 (cat "In which Drawe will you install MEReset?\n"
  30. "A new Drawer will be create"))
  31. (set #fragetext (cat "Shall I copy the Progrmm to WBStartup"))
  32. (set #ja (cat "Yes"))
  33. (set #nein (cat "No"))
  34. (set #confirmt (cat "What should I install?"))
  35. (set #fragetextL (cat "Which languages should I install?"))
  36. (set #CLI_Ver (cat "Should I install the CLI/Shell-Version?"))
  37. ))
  38.  
  39. ;**************************************************
  40.  
  41. (if (< (/ (getversion) 65536) 37)
  42. (
  43.     (abort #bad-kick)
  44. ))
  45.  
  46. ;**************************************************
  47.  
  48. (complete 0)
  49.  
  50. (set #name
  51.     (askdir
  52.         (prompt #askdir1)
  53.         (help @askdir-help)
  54.         (default "SYS:Tools")
  55.     )
  56. )
  57.  
  58. (set #Dname (tackon #name "MEReset"))
  59.  
  60. (makedir #Dname
  61.  (infos)
  62. )
  63.  
  64. (copyfiles
  65.     (source "")
  66.     (dest #Dname)
  67.     (pattern "#?")
  68.     (prompt #confirmt)
  69.     (help @confirm-help)
  70.     (confirm)
  71. )
  72.  
  73. (complete 50)
  74.  
  75. ;**************************************************
  76.  
  77. (set name
  78.     (askoptions
  79.         (prompt #fragetext)
  80.         (help @askoptions-help)
  81.         (choices #Ja)
  82.         (default 1)
  83.     )
  84. )
  85.  
  86. (if (= 1 name)
  87. (
  88.  (copyfiles
  89.     (source "MEReset")
  90.     (dest "sys:WBStartup")
  91.     (prompt #fragetext)
  92.     (help @confirm-help)
  93.     (confirm)
  94.  )
  95.  (copyfiles
  96.     (source "MEReset.info")
  97.     (dest "sys:WBStartup")
  98.     (prompt #fragetext)
  99.     (help @confirm-help)
  100.     (confirm)
  101.  )
  102. )
  103. )
  104.  
  105. (set name
  106.     (askoptions
  107.         (prompt #CLI_Ver)
  108.         (help @askoptions-help)
  109.         (choices #Ja)
  110.         (default 1)
  111.     )
  112. )
  113.  
  114. (if (= 1 name)
  115. (
  116.  (copyfiles
  117.     (source "MEReset.CLI")
  118.     (dest "s:")
  119.     (prompt #fragetext)
  120.     (help @confirm-help)
  121.     (confirm)
  122.  )
  123. ))
  124.  
  125. (complete 80)
  126.  
  127. ;**************************************************
  128.  
  129. (if (exists "sys:locale/catalogs")
  130.  
  131.  (set #lang (askoptions
  132.         (prompt #fragetextL)
  133.         (help @askoptions-help)
  134.         (choices "Deutsch" "English")
  135.         (default 1))
  136.  )
  137. )
  138.  
  139. (set #n 0)
  140.  
  141. (while
  142.     (set #sprache
  143.          (select #n
  144.              "Deutsch"
  145.              "English"
  146.              ""
  147.          )
  148.      )
  149.     (
  150.      (if (IN #lang #n)
  151.         (
  152.          (set #catalog (tackon "Catalogs" (tackon #sprache "mereset.catalog")))
  153.          (set #destination (tackon "Locale:Catalogs/" #sprache))
  154.          (copyfiles
  155.             (source #catalog)
  156.             (dest #destination)
  157.             (prompt #confirmt)
  158.             (help @confirm-help)
  159.             (confirm))
  160.         )
  161.      )
  162.      (set #n (+ #n 1))
  163.     )
  164. )
  165.  
  166.  
  167. (complete 100)
  168.