home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Utilities / HDPP2.0 / Install_HDPP < prev    next >
Text File  |  1999-04-06  |  4KB  |  138 lines

  1. ;HDPP Installer
  2.  
  3. (welcome "Welcome to the HDPP v2.0 installation utility. This utility\n"
  4.          "is designed to require little if no interaction from you.")
  5. (message "Welcome to the HDPP installation program.\n\n"
  6.          "This process is automatic and the only input required from you "
  7.          "is the place which you want to install the program.\n\n"
  8.          "HDPP is ©1998-9 Joker Developments Limited.") 
  9.  
  10. (set #destdir
  11.  (askdir
  12.   (prompt "Select a directory to install HDPP to (a directory will be created.)")
  13.   (help "HDPP needs to have it's own directory if it is going to be "
  14.         "installed successfully. The installer will create the directory "
  15.         "called HDPP on it's own, so don't worry.")
  16.   (default "Workbench:Tools")
  17.  )
  18. )
  19.  
  20. (set #dest
  21.  (tackon #destdir "HDPP/")
  22. )
  23. (set @default-dest #dest)
  24. (makedir #dest
  25.  (prompt "Creating directory "#dest".")
  26.  (help @makedir-help)
  27.  (infos)
  28. )
  29. (set #docdest
  30.  (tackon #dest "Docs/")
  31. )
  32. (makedir #docdest
  33.  (prompt "Creating directory "#docdest".")
  34.  (help @makedir-help)
  35.  (infos)
  36. )
  37.  
  38. (working "Installing main executable to "#dest"...")
  39. (copyfiles
  40.  (prompt "Copying main executable to "#dest"...")
  41.  (help @copyfiles-help)
  42.  (source "HDPP2.0")
  43.  (dest #dest)
  44.  (infos)
  45.  (nogauge)
  46. )
  47.  
  48. (working "Installing Prefs program to "#dest"...")
  49. (copyfiles
  50.  (prompt "Copying Prefs program to "#dest"...")
  51.  (help @copyfiles-help)
  52.  (source "HDPP_Prefs2.0")
  53.  (dest #dest)
  54.  (infos)
  55.  (nogauge)
  56. )
  57.  
  58. (working "Installing sound files to "#dest"...")
  59. (copyfiles
  60.  (prompt "Copying default sound files to "#dest"...")
  61.  (help @copyfiles-help)
  62.  (source "Granted.snd")
  63.  (dest #dest)
  64.  (infos)
  65.  (nogauge)
  66. )
  67.  
  68. (working "Installing sound files to "#dest"...")
  69. (copyfiles
  70.  (prompt "Copying default sound files to "#dest"...")
  71.  (help @copyfiles-help)
  72.  (source "Denied.snd")
  73.  (dest #dest)
  74.  (infos)
  75.  (nogauge)
  76. )
  77.  
  78. (working "Installing documentation to "#dest"...")
  79. (copyfiles
  80.  (prompt "Copying documentation to "#dest"...")
  81.  (help @copyfiles-help)
  82.  (source "Docs/")
  83.  (dest #docdest)
  84.  (infos)
  85.  (all)
  86.  (nogauge)
  87. )
  88. (working "Installing removal script...")
  89. (copyfiles
  90.  (prompt "Copying UnInstall-HDPP...")
  91.  (help @copyfiles-help)
  92.  (source="UnInstall-HDPP")
  93.  (dest #dest)
  94.  (infos)
  95. )
  96. (working "Installing font to FONTS: ...")
  97. (copyfiles
  98.  (prompt "Copying font to FONTS: ...")
  99.  (help "The HDPP font is just a load of asterisks (*)!")
  100.  (source "Fonts/")
  101.  (dest "FONTS:")
  102.  (all)
  103.  (nogauge)
  104. )
  105.  
  106. (rename "C:LoadWB" "C:IO.DEV"
  107.  (prompt "Renaming C:LoadWB to C:IO.DEV...")
  108.  (help "HDPP requires the LoadWB command to be called IO.DEV so that the "
  109.        "script file can be put in as LoadWB. This ensures that there are "
  110.        "no modifications to your startup-sequence itself.")
  111. )
  112.  
  113. (working "Creating a new LoadWB script in C: ...")
  114. (textfile
  115.  (prompt "Creating a new LoadWB script in C: ...")
  116.  (help "This new script will launch HDPP and then load the workbench as "
  117.        "usual. This way, people fiddling with your startup-sequence will "
  118.        "see nothing unusual. This is how HDPP buries itself in the "
  119.        "system.")
  120.  (dest "C:LoadWB")
  121.  (append "Assign HDPP: "#dest"\n"
  122.          "HDPP:HDPP2.0\n"
  123.          "Assign HDPP: Remove\n"
  124.          "C:IO.DEV >NIL:")
  125. )
  126. (protect "C:LoadWB" "+s")
  127.  
  128. (working "Installing Prefs program to SYS:Prefs ...")
  129. (copyfiles
  130.  (prompt "Installing the Prefs program to SYS:Prefs ...")
  131.  (help "The HDPP Prefs program allows you to change your password 'on the "
  132.        "fly' and is extremely easy to use.")
  133.  (source "HDPP_Prefs2.0")
  134.  (dest "SYS:Prefs")
  135.  (infos)
  136.  (nogauge)
  137. )
  138.