home *** CD-ROM | disk | FTP | other *** search
/ Merciful 3 / Merciful_Release_3.bin / software / h / hippo_player / hippoplayerv2.3.lha / HippoPlayer / Install < prev    next >
Text File  |  1996-07-09  |  5KB  |  331 lines

  1. ; $VER: Install HippoPlayer
  2. ;
  3. ;       Installer script for HippoPlayer.
  4. ;
  5. ;(C) 31.X.1995 Tomasz Kepa
  6. ;
  7. ; Major modifications by K-P
  8. ;
  9.  
  10.  
  11. (complete 0)
  12.  
  13. (set DEST-DIR
  14.   (askdir
  15.     (prompt "Where do you want to install HippoPlayer?")
  16.     (help (cat @askdir-help)
  17.     )
  18.     (default "SYS:")
  19.   )
  20. )
  21.  
  22. (delete "s:hip-script")
  23.  
  24. (copyfiles
  25.   (source "HiP")
  26.   (dest DEST-DIR)
  27. )
  28.  
  29. (set NUMBER
  30.   (askchoice
  31.     (prompt "Select an icon for HippoPlayer")
  32.     (help
  33.       (cat
  34.         "You can choose one icon for HippoPlayer. There are"
  35.         "\nsome icons for normal WB with 4 colors, couple"
  36.         "\nof colorful icons for MagicWB users and one for"
  37.         "\nNewIcons.\n\n"
  38.         @askchoice-help
  39.       )
  40.     )
  41.     (choices
  42.       "Face portrait (4 colors; all kickstarts)"
  43.       "Smaller face portrait (4 colors; all kickstarts)"
  44.       "Hippo-text (MagicWB)"
  45.       "Colorful face portrait (MagicWB)"
  46.       "Speakers (MagicWB)"
  47.       "Another face portrait (MagicWB)"
  48.       "Whole Hippo (NewIcons)" 
  49.       "Whole Hippo (MagicWB)"
  50.     )
  51.     (default 0)
  52.   )
  53. )
  54.  
  55. (complete 10)
  56.  
  57. (if (= NUMBER 0)
  58.   (copyfiles
  59.     (source "HiP.info")
  60.     (dest DEST-DIR)
  61.   )
  62. )
  63.  
  64. (if (= NUMBER 1)
  65.   (copyfiles
  66.     (source "Icons/HiP2.info")
  67.     (dest DEST-DIR)
  68.     (newname "HiP.info")
  69.   )
  70. )
  71.  
  72. (if (= NUMBER 2)
  73.   (copyfiles
  74.     (source "Icons/HiP_MWB.info")
  75.     (dest DEST-DIR)
  76.     (newname "HiP.info")
  77.   )
  78. )
  79.  
  80. (if (= NUMBER 3)
  81.   (copyfiles
  82.     (source "Icons/HiP_MWB2.info")
  83.     (dest DEST-DIR)
  84.     (newname "HiP.info")
  85.   )
  86. )
  87.  
  88. (if (= NUMBER 4)
  89.   (copyfiles
  90.     (source "Icons/HiP_MWB3.info")
  91.     (dest DEST-DIR)
  92.     (newname "HiP.info")
  93.   )
  94. )
  95.  
  96. (if (= NUMBER 5)
  97.   (copyfiles
  98.     (source "Icons/HiP_MWB4.info")
  99.     (dest DEST-DIR)
  100.     (newname "HiP.info")
  101.   )
  102. )
  103.  
  104. (if (= NUMBER 6)
  105.   (copyfiles
  106.     (source "Icons/HiP_NI.info")
  107.     (dest DEST-DIR)
  108.     (newname "HiP.info")
  109.   )
  110. )
  111.  
  112. (if (= NUMBER 7)
  113.   (copyfiles
  114.     (source "Icons/HiP_MWB5.info")
  115.     (dest DEST-DIR)
  116.     (newname "HiP.info")
  117.   )
  118. )
  119.  
  120.  
  121.  
  122. (set DOCS
  123.   (askbool
  124.     (prompt "\n\n\n\n\nDo you want to install the documentation?")
  125.     (help (cat
  126.     "You really should."
  127.         )
  128.     )
  129.     (default 1)
  130.   )
  131. )
  132.  
  133. (complete 20)
  134.  
  135. (if (= DOCS 1)
  136.   (set DOC
  137.     (askoptions
  138.       (prompt "Which type of documentation do you want?")
  139.       (help (cat @askoptions-help))
  140.       (choices
  141.         "ASCII"
  142.         "AmigaGuide"
  143.       )
  144.       (default 2)
  145.     )
  146.   )
  147. )
  148.  
  149.  
  150. (if (= DOCS 1)
  151.  (set DEST-DIR2
  152.    (askdir
  153.      (prompt "Select destination directory for the documentation")
  154.      (help (cat @askdir-help)
  155.      )
  156.      (default DEST-DIR)
  157.    )
  158.  )
  159.  
  160. (if (= DOC 1)
  161.   (copyfiles
  162.     (source "")
  163.     (dest DEST-DIR2)
  164.     (choices
  165.       "HiP.doc"
  166.       "HiP.doc.info"
  167.     )
  168.   )
  169. )
  170.  
  171. (complete 30)
  172.  
  173. (if (= DOC 2)
  174.   (copyfiles
  175.     (source "")
  176.     (dest DEST-DIR2)
  177.     (choices
  178.       "HiP.guide"
  179.       "HiP.guide.info"
  180.     )
  181.   )
  182. )
  183.  
  184. (if (= DOC 3)
  185.   (copyfiles
  186.     (source "")
  187.     (dest DEST-DIR2)
  188.     (choices
  189.       "HiP.doc"
  190.       "HiP.doc.info"
  191.       "HiP.guide"
  192.       "HiP.guide.info"
  193.     )
  194.   )
  195. )
  196.  
  197.  
  198. (complete 40)
  199.  
  200. (copyfiles
  201.   (source "")
  202.   (dest
  203.     (askdir
  204.       (prompt
  205.         (cat
  206.           "Select destination directory for HippoPlayer.group"
  207.         )
  208.       )
  209.       (help
  210.         (cat
  211.       "This file contains some playroutines for different music"
  212.       " formats. It is adviced to install it."
  213.           " The place of HippoPlayer.group can also be defined"
  214.           " later in HippoPlayer.\n\n"
  215.           @askdir-help
  216.         )
  217.       )
  218.       (default "S:")
  219.     )
  220.   )
  221.   (choices
  222.     "HippoPlayer.group"
  223.   )
  224. )
  225.  
  226. (complete 50)
  227.  
  228.  
  229. (if (exists "S:HippoPlayer.PS3M")
  230.   (if (=
  231.     (askbool
  232.       (prompt (cat
  233.             "\n\n\n\n\nDo you want to overwrite S:HippoPlayer.PS3M?"
  234.           )
  235.       )
  236.       (help
  237.         (cat "Don't overwrite if you want to keep your PS3M settings." 
  238.          "\nDo overwrite if you're updating from v2.12 or older.")
  239.       )
  240.     ) 1)
  241.     (copyfiles
  242.       (source "HippoPlayer.PS3M")
  243.       (dest "S:")
  244.     )
  245.   )
  246. )
  247.  
  248. (complete 60)
  249.  
  250. (copylib
  251.   (source "Libs/ReqTools.library")
  252.   (dest "Libs:")
  253.   (confirm)
  254.   (prompt "\n\n\nDo you want to install the reqtools.library?")
  255.   (help
  256.     (cat
  257.       "Reqtools.library is needed for requesters in HippoPlayer."
  258.       " Library version for kickstart 1.2/1.3 is included.\n\n"
  259.       @copylib-help
  260.     )
  261.   )
  262. )
  263.  
  264. (complete 70)
  265.  
  266. (if (=
  267.   (askbool
  268.     (prompt "\n\n\n\n\nDo you want to install the ARexx scripts?")
  269.     (help
  270.       (cat
  271.         "Some might be useful.\n\n"
  272.       )
  273.     )
  274.   ) 1)
  275.   (copyfiles
  276.     (source "ARexx")
  277.     (dest
  278.       (askdir
  279.         (prompt "Select destination directory for ARexx scripts")
  280.         (help
  281.           (cat
  282.             @askdir-help
  283.           )
  284.         )
  285.         (default "REXX:")
  286.       )
  287.     )
  288.     (all)
  289.   )
  290. )
  291.  
  292. (complete 80)
  293.  
  294. (if (=
  295.   (askbool
  296.     (prompt "\n\n\n\n\nDo you want to copy HippoPlayer brush for ToolManager somewhere?")
  297.     (help
  298.       (cat
  299.       )
  300.     )
  301.   ) 1)
  302.   (copyfiles
  303.     (source "Brushes")
  304.     (dest
  305.       (askdir
  306.         (prompt "Select destination directory for the brush")
  307.         (help
  308.           (cat
  309.             @askdir-help
  310.           )
  311.         )
  312.         (default "SYS:")
  313.       )
  314.     )
  315.     (all)
  316.   )
  317. )
  318.  
  319.  
  320. (complete 100)
  321.  
  322. (message
  323.   (cat
  324.     "\n\n\n\n"
  325.     "Check out the ARexx/, Scopes/ and the Support/ directories."
  326.     " There are some stuff that might be useful or fun.\n\n"
  327.     "Finally, READ THE DOC!"
  328.   )
  329. )
  330.