home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma20.dms / ma20.adf / BootScreen / Install < prev    next >
Text File  |  1994-05-28  |  6KB  |  176 lines

  1. ; Install script for BootScreen
  2. ; Copyright ©1994 by Joseph Luk, all rights reserved.
  3. ; $VER: BootScreen 2.00, BootScreenClose 2.00, BootScreen Prefs 2.00
  4.  
  5. (set #PRGVersion 
  6.    ("2.00")
  7. )
  8.  
  9. (set #IconHelp
  10.    (cat
  11.       "This procedure will install an icon for the Preferences Editor.  Note that to use BootScreen, you *MUST* have an icon for the Preferences editor.\n\n\n"
  12.       "Explanation of choices:\n\n"
  13.       "MagicWB -- This is an eight-color icon system devised by Martin Huttenloher.  If you use Workbench 3.0, install the 8-bitplane icon; if you use Workbench 2.x, install the 3-bitplane icon.  The icons are identical except the 8-bitplane version is larger and slower, but is required in a default Workbench 3.0 setup.  Note that if you use ProcurePens to map your MagicWB colors permanently onto positions 3-7, you should use the 3-bitplane icon.\n\n"
  14.       "Standard OS2.x+ four-color -- This option will install an icon similar to the ones originally provided with your system software."
  15.    )
  16. )
  17.  
  18. (set #AddCommandHelp
  19.       ("This operation will automatically add the following lines to s:startup-sequence AFTER the SetPatch line:\n\n; BootScreen ©1994 by Joseph Luk\nBootScreen\n\nIf you choose to cancel this operation, you *MUST* add these lines yourself.  See the documentation for more information.")
  20. )
  21.  
  22.  
  23.  
  24. (welcome 
  25.    ("This procedure will install the BootScreen ")
  26.    (#PRGVersion)
  27.    (" package and will take less than five minutes to complete.\n\nThe recommended user level is \"Intermediate\" -- \"Expert\" can let you perform an incomplete installation.\n\n")
  28. )
  29.  
  30.  
  31. (if (OR (exists "C:BootScreen") (exists "C:BootScreen37") )
  32.    (
  33.       (if (= @user-level 0) (abort ("An already installed copy of BootScreen has been found.  Please use the \"Update\" utility first.") ) )
  34.       (message
  35.          ("WARNING: An already installed copy of BootScreen has been found on your system disk.\n\n")
  36.          ("This installation utility is designed for a new installation.  To remove your old version of BootScreen, please run the \"Update\" utility first.\n\n")
  37.          ("Select \"Abort Install\" to exit.")
  38.       )
  39.    )
  40. )
  41.  
  42.  
  43. (copylib
  44.    (prompt "Installing iff.library")
  45.    (help (cat
  46.           "Christian A. Weber's iff.library is necessary to run BootScreen.  The small file will be copied to your LIBS: directory.\n\n"
  47.           @copylib-help)
  48.    )
  49.    (source "libs/iff.library")
  50.    (dest "LIBS:")
  51.    (confirm)
  52. )
  53.  
  54. (copyfiles
  55.    (prompt "Installing BootScreen Program")
  56.    (help (cat
  57.           "This procedure will install the main BootScreen program in your C: directory.\n\n"
  58.           @copyfiles-help
  59.           )
  60.    )
  61.    (source "bin/c/BootScreen")
  62.    (dest "C:")
  63.    (confirm)
  64. )
  65.  
  66. (copyfiles
  67.    (prompt "Installing BootScreen Close Daemon")
  68.    (help
  69.          (cat
  70.          "This procedure will install the BootScreen close daemon in your C: directory.  The close daemon is required to shut down the screen and must be invoked only from within BootScreen (you do not need to worry about it, just make sure it's in C:)\n\n"
  71.          @copyfiles-help
  72.          )
  73.    )
  74.    (source "bin/c/BootScreenClose")
  75.    (dest "C:")
  76.    (confirm)
  77. )
  78.  
  79.  
  80. (copyfiles
  81.    (prompt "Installing Sample Startup Screen Pictures")
  82.    (help
  83.       (cat
  84.          ("I've provided several sample pictures (only one in the unregistered package).  Please select which ones you would like to have available on your hard disk.")
  85.          @copyfiles-help
  86.       )
  87.    )
  88.    (source "SampleScreens")
  89.    (dest "SYS:Prefs/Presets")
  90.    (pattern "#?")
  91.    (infos)
  92.    (confirm)
  93. )
  94.  
  95.  
  96. (copyfiles
  97.    (prompt "Installing Preferences Editor")
  98.    (help (cat
  99.          "This procedure will install the BootScreen Preferences editor in SYS:Prefs, where all the other Preferences editors are also kept.  The Editor's icon stores the BootScreen configuration, so you must not rename or delete it.\n\n"
  100.          @copyfiles-help
  101.          )
  102.    )
  103.    (source "bin/Prefs/BootScreen")
  104.    (dest "SYS:Prefs")
  105.    (confirm)
  106. )
  107.  
  108. (if (= @user-level 0)
  109. (
  110.    (set #icon "Icons/PrefsSTD.info")
  111. )
  112. (
  113.    (set #choice
  114.       (askchoice
  115.          (prompt "Please select which icon system you use:")
  116.          (help #IconHelp)
  117.          (choices
  118.             ("MagicWB (OS3.0 and up - 8-bitplane icon)")
  119.                ("MagicWB (OS2.x - 3-bitplane icon) ")
  120.             ("Standard OS2.x+ four-color")
  121.          )
  122.       )
  123.    )  
  124.    
  125.    (if (= #choice 0)
  126.        (set #icon "Icons/PrefsMWB8.info")
  127.    (if (= #choice 1)
  128.        (set #icon "Icons/PrefsMWB3.info")
  129.    (if (= #choice 2)
  130.        (set #icon "Icons/PrefsSTD.info")
  131.    )))
  132. )
  133. )
  134.  
  135. (copyfiles
  136.    (prompt "Copying Preferences Editor icon..")
  137.    (help @copyfiles-help)
  138.    (source #icon)
  139.    (dest "SYS:Prefs")
  140.    (newname "BootScreen.info")
  141. )
  142.       
  143.  
  144. ; now modify s:startup-sequence
  145. (if
  146.    (askbool
  147.       (prompt "\n\nSelect \"Proceed\" to finish the installation by adding the BootScreen command to s:startup-sequence.")
  148.       (help #AddCommandHelp)
  149.       (default 1)
  150.       (choices "Proceed" "Cancel")
  151.    )
  152.    (run ("bin/c/AddCommand"))
  153.    
  154.    (if
  155.       (askbool 
  156.          (prompt "\n\nAre you sure you want to cancel this?  If so, you will need to manually edit your startup-sequence as specified in the documentation." )
  157.          (help #AddCommandHelp)
  158.          (choices "No, do it for me" "Yes, I'll do it myself")
  159.       )
  160.       (run ("bin/c/AddCommand"))
  161.       (exit)
  162.    )
  163. )
  164.  
  165.  
  166. ; that's it!
  167.  
  168. (set @default-dest "SYS:")
  169.  
  170. (message
  171.    "All done!  To begin using BootScreen, all you need to do is run the \"BootScreen\" Preferences editor in your SYS:Prefs drawer.\n\n"
  172.    "Please remember that BootScreen is ShareWare and you are required by law to pay the requested fee of $5.  You may try BootScreen for up to one month without doing so, but if you find it useful you should register it.  More details are provided in the \"About...\" requester in the Preferences program.  Thank you!"
  173. ;   "Thank you for registering BootScreen!  Your name and address are encoded into the executables, so please do not distribute them to ANYONE.  Legal action will be taken if you are caught.  You are granted a license for use of BootScreen on one computer at any given time."
  174. )
  175.  
  176. (exit)