home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 101 / af101b.adf / installers.lzx / Installers / RenegadePack / SpeedBall2 / Install_SpeedBall2CD32 < prev    next >
Text File  |  2016-09-17  |  2KB  |  72 lines

  1. ; $VER: SpeedBall II CD32 HD Install-Script V1.0 by Jean-Francois Fabre
  2. ; Adapted from an installer from Sentinel
  3.  
  4. (set GameDir "SpeedBallII_CD32")
  5.  
  6. ;try to figure out a place where the user usually installs his games
  7. (if (exists "Games:" (noreq) )
  8.     (set @default-dest "Games:")
  9.     (if (exists "SYS:Games" (noreq) )
  10.         (set @default-dest "SYS:Games")
  11.         (if (exists "Work:Games" (noreq) )
  12.             (set @default-dest "Work:Games")
  13.             (if (exists "JEUX:" (noreq) )
  14.                (set @default-dest "JEUX:")
  15.                (set @default-dest "SYS:")
  16.             )
  17.         )
  18.     )
  19. )
  20.  
  21. ;ask the user to select a directory to install the game into
  22. (set default-dest
  23.      (tackon (askdir (prompt "Where would you like " @app-name " installed?\n"
  24.                              "A drawer called " GameDir " will be created.")
  25.                      (help @askdir-help)
  26.                      (default @default-dest)
  27.              )
  28.      GameDir
  29.      )
  30. )
  31. (set @default-dest default-dest)
  32.  
  33. ;create the selected directory
  34. (makedir @default-dest
  35.          (infos)
  36. )
  37.  
  38. (message "\n\n\n\n\n\nPlease insert SpeedBall2 CD in the CD-ROM drive")
  39.  
  40. ;copy the executable so we can locate it
  41.  
  42. (copyfiles (source "patchsb2")
  43.            (dest "ram:")
  44. )
  45.  
  46.  
  47. (copyfiles (source "SpeedBallII:")
  48.            (dest @default-dest)
  49.        (all)
  50. )
  51.  
  52. ;copy all extra files to this directory
  53.  
  54. (copyfiles (source "SpeedBall2CD32.icon")
  55.            (dest @default-dest)
  56.        (newname "SpeedBall2CD32.info")
  57. )
  58.  
  59. (copyfiles (source "SpeedBall2CD32")
  60.            (dest @default-dest)
  61. )
  62.  
  63. ; patch the executable (to remove the protection)
  64.  
  65. (if
  66.            (= 0 (run ("ram:patchsb2 %s/game" @default-dest)))
  67.         ("")
  68.     (abort "file \"patchsb2\" not found !")
  69. )
  70.  
  71.  
  72.