home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Sound / Player / INSHP232.LHA / HippoPlayer / Install < prev    next >
Encoding:
Text File  |  1996-10-06  |  5.4 KB  |  228 lines

  1. ; Installer script for HippoPlayer.
  2. ;
  3. ; 3.9.1996 by K-P Koljonen
  4. ;
  5.  
  6.  
  7. (complete 0)
  8.  
  9. (delete "s:hip-script")
  10.  
  11. (message 
  12.   "\n\nHippoPlayer is shareware.\n\nPlease consider registering!"
  13.   "\nSee the doc for more info."
  14.   (ALL)
  15. )
  16.  
  17. (complete 3)
  18.  
  19. (set #DEST0
  20.   (askdir
  21.     (prompt "Where do you want to install HippoPlayer? A drawer will be created there.")
  22.     (help (cat @askdir-help)
  23.     )
  24.     (default "Work:")
  25.   )
  26. )
  27.  
  28. (complete 6)
  29.  
  30. (set #DEST (tackon #DEST0 "HippoPlayer"))
  31. (makedir #DEST (infos))
  32.  
  33. (copyfiles (dest #DEST) (source "HiP"))
  34. (copyfiles (dest #DEST) (source "HiP.info"))
  35. (copyfiles (dest #DEST) (source "Readme!"))
  36. (copyfiles (dest #DEST) (source "Readme!.info"))
  37. (copyfiles (dest #DEST) (source "RegisteredUsers"))
  38. (copyfiles (dest #DEST) (source "RegisteredUsers.info"))
  39.  
  40. (complete 10)
  41.  
  42. ; ******* Install icon
  43.  
  44. (run "run SYS:Utilities/MultiView Icons/Overview.iff")
  45.  
  46. (set #ICONS
  47.     (askchoice
  48.     (prompt "Choose an icon for HippoPlayer")
  49.     (help (cat @askchoice-help))
  50.     (default 0)
  51.     (choices
  52.         "#1: 4 colors"
  53.         "#2: 4 colors"
  54.         "#3: MagicWB 8 colors"
  55.         "#4: MagicWB 8 colors"
  56.         "#5: MagicWB 8 colors"
  57.         "#6: MagicWB 8 colors"
  58.         "#7: MagicWB 8 colors"
  59.         "#8: NewIcons"
  60.         )
  61.     )
  62. )
  63.  
  64. (complete 15)
  65.  
  66. (if (= #ICONS 1) (copyfiles (source "Icons/HiP2.info") (dest #DEST) (newname "HiP.info") (optional "nofail")) )
  67. (if (= #ICONS 2) (copyfiles (source "Icons/HiP_MWB.info") (dest #DEST) (newname "HiP.info") (optional "nofail")) )
  68. (if (= #ICONS 3) (copyfiles (source "Icons/HiP_MWB2.info") (dest #DEST) (newname "HiP.info") (optional "nofail")) )
  69. (if (= #ICONS 4) (copyfiles (source "Icons/HiP_MWB3.info") (dest #DEST) (newname "HiP.info") (optional "nofail")) )
  70. (if (= #ICONS 5) (copyfiles (source "Icons/HiP_MWB4.info") (dest #DEST) (newname "HiP.info") (optional "nofail")) )
  71. (if (= #ICONS 6) (copyfiles (source "Icons/HiP_MWB5.info") (dest #DEST) (newname "HiP.info") (optional "nofail")) )
  72. (if (= #ICONS 7) (copyfiles (source "Icons/HiP_NI.info") (dest #DEST) (newname "HiP.info") (optional "nofail")) )
  73.  
  74. ; ******* Reqtools.library
  75.  
  76. (complete 20)
  77.  
  78. (if (= (exists "Libs:reqtools.library") 0)
  79.   (copylib
  80.     (source "Libs/ReqTools.library")
  81.     (dest "Libs:")
  82.     (confirm)
  83.     (prompt "\n\nInstall reqtools.library?\nOnly do so if you already don't have it installed!")
  84.     (help
  85.       (cat
  86.         "Reqtools.library is needed for requesters in HippoPlayer."
  87.         " Library version for kickstart 1.2/1.3 is included."
  88.         @copylib-help
  89.       )
  90.     )
  91.   )
  92. )
  93.  
  94. ; ******* Group
  95.  
  96. (complete 30)
  97.  
  98. (copyfiles
  99.   (source "")
  100.   (dest
  101.     (askdir
  102.       (prompt
  103.         (cat
  104.           "Select destination directory for HippoPlayer.group"
  105.         )
  106.       )
  107.       (help
  108.         (cat
  109.       "This file contains some play routines for different music"
  110.       " formats. It is adviced to install it."
  111.           " The place of HippoPlayer.group can also be defined"
  112.           " later in HippoPlayer's preferences.\n\n"
  113.           @askdir-help
  114.         )
  115.       )
  116.       (default "S:")
  117.     )
  118.   )
  119.   (choices
  120.     "HippoPlayer.group"
  121.   )
  122. )
  123.  
  124. ; ******* PS3M settings
  125.  
  126. (complete 40)
  127.  
  128. (if (exists "S:HippoPlayer.PS3M")
  129.   (if (=
  130.     (askbool
  131.       (prompt (cat
  132.             "\n\n\n\nDo you want to overwrite S:HippoPlayer.PS3M?"
  133.           )
  134.       )
  135.       (help
  136.         (cat "Don't overwrite if you want to keep your PS3M settings." 
  137.          " Do overwrite if you're updating from v2.12 or older.")
  138.       )
  139.     ) 1)
  140.     (copyfiles
  141.       (source "HippoPlayer.PS3M")
  142.       (dest "S:")
  143.     )
  144.   )
  145. )
  146.  
  147.  
  148. (complete 50)
  149.  
  150.  
  151. ; ******* Select stuff to copy
  152.  
  153.  
  154. (set #NUM
  155.     (askoptions 
  156.     (prompt "Which of these do you want to install?")
  157.     (help (cat
  158.          "Documentation: Docs for HippoPlayer in text or guide format.\n\n" 
  159.          "ARexx scripts: Various ARexx scripts for HippoPlayer.\n\n"
  160.          "Icons: Different WB icons for HippoPlayer.\n\n"
  161.                  "Toolmanager brush: A brush for use with ToolManager for example.\n\n"
  162.                  "External scopes: A couple of external scopes which must be started from Shell or WB.\n\n"
  163.                  "Support stuff: Some little tools, including the useful 14-bit calibration program.\n\n"
  164.          @askoptions-help))
  165.     (default %100001)
  166.     (choices
  167.         "Documentation"
  168.         "ARexx scripts"
  169.         "Icons"
  170.         "Toolmanager brush"
  171.         "External scopes"
  172.         "Support stuff"
  173.         )
  174.     )
  175. )
  176.  
  177. (complete 60)
  178.  
  179. ; ******* Copy docs
  180.  
  181. (if (IN #NUM 0)
  182.    (set #DOC
  183.     (askoptions
  184.       (prompt "Select type of documentation")
  185.       (help (cat @askoptions-help))
  186.       (default 1)
  187.       (choices "AmigaGuide" "Text")
  188.       )
  189.    )
  190. )
  191.  
  192. (if (IN #DOC 0) (copyfiles (source "") (dest #DEST) (pattern "HiP.guide#?")))    
  193. (if (IN #DOC 1) (copyfiles (source "") (dest #DEST) (pattern "HiP.doc#?")))    
  194.  
  195. ; ******* ARexx
  196.  
  197. (complete 65)
  198. (if (IN #NUM 1)    (makedir (tackon #DEST "ARexx") (infos)))
  199. (if (IN #NUM 1)    (copyfiles (source "ARexx/") (dest (tackon #DEST "ARexx")) (all)))
  200.  
  201. ; ******* Icons
  202.  
  203. (complete 70)
  204. (if (IN #NUM 2) (makedir (tackon #DEST "Icons") (infos)))
  205. (if (IN #NUM 2)    (copyfiles (source "Icons/") (dest (tackon #DEST "Icons")) (all)))
  206.  
  207. ; ******* Toolmanager brushes
  208.  
  209. (complete 80)
  210. (if (IN #NUM 3)    (makedir (tackon #DEST "Brushes") (infos)))
  211. (if (IN #NUM 3)    (copyfiles (source "Brushes/") (dest (tackon #DEST "Brushes")) (all)))
  212.  
  213. ; ******* External scopes
  214.  
  215. (complete 90)
  216. (if (IN #NUM 4)    (makedir (tackon #DEST "Scopes") (infos)))
  217. (if (IN #NUM 4)    (copyfiles (source "Scopes/") (dest (tackon #DEST "Scopes")) (all)))
  218.  
  219. ; ******* Support stuff
  220.  
  221. (complete 95)
  222. (if (IN #NUM 5)    (makedir (tackon #DEST "Support") (infos)))
  223. (if (IN #NUM 5)    (copyfiles (source "Support/") (dest (tackon #DEST "Support")) (all)))
  224.  
  225. ; ******
  226.  
  227. (complete 100)
  228.