home *** CD-ROM | disk | FTP | other *** search
/ MACD 4 / MACD4.iso / cdity / EasyTM.lha / EasyTM / Install-EasyTM < prev   
Encoding:
Text File  |  1996-05-27  |  2.7 KB  |  134 lines

  1. ; ===================================
  2. ;
  3. ; EasyTM installer script
  4. ; $VER: EasyTM-Install 1.1 (28.05.96)
  5. ;
  6. ; Copyright © 1996 Tak Tang
  7. ;
  8. ; ===================================
  9.  
  10. ; ==== English strings
  11.  
  12. (set #bad-kick-msg "EasyTM requires AmigaOS 2.04 or above.")
  13.  
  14. (set #hello-msg
  15.    (cat "\n\nThank you for trying EasyTM, the"
  16.         "\nlite tool manager for the Amiga."
  17.         "\n"
  18.         "\nNothing will be deleted from your"
  19.         "\nsystem with this installation program."
  20.         "\n"
  21.         "\nIf you don't understand any part of the"
  22.         "\ninstallation, click on the \"Help\" gadget found"
  23.         "\nthroughout the installation for more information."
  24.         "\n\nCLICK TO PROCEED"))
  25.  
  26. (set #alltime-msg
  27.    (cat "\n\n"
  28.     "Do you want EasyTM to be run every\n"
  29.         "time you turn on your machine?\n"))
  30.  
  31. (set #alltime-help
  32.    (cat "\n\n"
  33.     "Selecting YES will copy EasyTM to your WBStartUp\n"
  34.        "drawer, where it will be started every time you\n"
  35.        "boot your machine.  Selecting NO will copy EasyTM\n"
  36.        "to your SYS:Tools/Commodities drawer.\n"))
  37.  
  38. (set #choosetool-msg
  39.    (cat "\n"
  40.     "Where shall I copy EasyTM (the main program)?\n"))
  41.  
  42. (set #choosetool-help
  43.    (cat "\n"
  44.     "If you want EasyTM to start automatically, each\n"
  45.     "time you reboot, place EasyTM in SYS:WBStartUp.\n"
  46.     "\n"
  47.     "Otherwise, select the directory where\n"
  48.     "you store all your commodities.\n"
  49.     "This is usually SYS:Tools/Commodities.\n"))
  50.  
  51. (set #exit-msg
  52.    (cat "You can run EasyTM now - just double click\n"
  53.         "on the icon, or reboot your machine.\n"
  54.         "\n"
  55.         "You should run the prefs program\n"
  56.         "to set up your tools menu.\n"
  57.         "\n"
  58.         "Enjoy easyTM!"))
  59.  
  60. (set #tooldir "SYS:WBStartUp")
  61. (set #prefdir "SYS:Prefs")
  62.  
  63.  
  64. ; ===== Check Kickstart Version
  65.  
  66.  
  67. (if (< (getversion "LIBS:version.library") (* 37 65536))
  68.         (abort #bad-kick-msg)
  69. )
  70.  
  71. (message #hello-msg)
  72.  
  73.  
  74. ; ===== Install main program
  75.  
  76. (if (= 1 @user-level)
  77.     (if (= 0 (askbool (prompt #alltime-msg) (help #alltime-help) ) )
  78.         (set #tooldir "SYS:Tools/Commodities")
  79.     )
  80. )
  81.  
  82. (if (= 2 @user-level)
  83.     (set #tooldir
  84.         (askdir (prompt #choosetool-msg)
  85.             (help #choosetool-help)
  86.             (default #tooldir)
  87.         )
  88.     )
  89. )
  90.  
  91. (copyfiles
  92.     (prompt "Copying EasyTM")
  93.     (help @copyfiles-help)
  94.     (source "EasyTM")
  95.     (dest #tooldir)
  96.     (infos)
  97. )
  98.  
  99.  
  100. ; ===== Install prefs program
  101.  
  102. (copyfiles
  103.     (prompt "Copying EasyTM-Prefs")
  104.     (help @copyfiles-help)
  105.     (source "EasyTM-Prefs")
  106.     (dest #prefdir)
  107.     (infos)
  108. )
  109.  
  110.  
  111. ; ===== Install config files
  112.  
  113. (copyfiles
  114.     (prompt "Copying EasyTM.Config")
  115.     (help @copyfiles-help)
  116.     (source "EasyTM.Config")
  117.     (dest "ENVARC:")
  118.     (infos)
  119. )
  120.  
  121. (copyfiles
  122.     (prompt "Copying EasyTM.Config")
  123.     (help @copyfiles-help)
  124.     (source "EasyTM.Config")
  125.     (dest "ENV:")
  126.     (infos)
  127. )
  128.  
  129. ; ==== Exit
  130.  
  131. (exit #exit-msg)
  132.  
  133. ; ==== End of installer script
  134.