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

  1.  
  2. ;try to figure out a place where the user usually installs his games
  3. (if (exists "Games:" (noreq) )
  4.     (set @default-dest "Games:")
  5.     (if (exists "SYS:Games" (noreq) )
  6.         (set @default-dest "SYS:Games")
  7.         (if (exists "Work:Games" (noreq) )
  8.             (set @default-dest "Work:Games")
  9.             (if (exists "JEUX:" (noreq) )
  10.                (set @default-dest "JEUX:")
  11.                (set @default-dest "SYS:")
  12.             )
  13.         )
  14.     )
  15. )
  16.  
  17.  
  18. (set @default-dest
  19. (askdir
  20.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  21.     (help @askdir-help)
  22.     (default @default-dest)
  23.     (disk)
  24. )
  25. )
  26.  
  27. (set #dest (tackon @default-dest @app-name))
  28.  
  29.  
  30. (set #CI_unit
  31.     (askchoice
  32.         (prompt "From which disk unit do you want\nto install the game")
  33.         (help    @askoptions-help)
  34.         (choices
  35.            "DF0:"
  36.            "DF1:"
  37.            "DF2:"
  38.            "DF3:"
  39.         )
  40.     )
  41. )
  42.  
  43. (set #CI_drive ("DF%ld:" #CI_unit))
  44.  
  45. (makedir #dest
  46.     (help @makedir-help)
  47.     (infos)
  48. )
  49.  
  50. ;----------------------------
  51.  
  52. (copyfiles
  53.     (help @copyfiles-help)
  54.     (source "SpeedBall2HD")
  55.     (dest #dest)
  56.     (infos)
  57. )
  58.  
  59. (copyfiles
  60.     (help @copyfiles-help)
  61.     (source "sb2hd.readme")
  62.     (dest #dest)
  63.     (infos)
  64. )
  65.  
  66. (message ("\nInsert %s disk into drive %s !" @app-name #CI_drive))
  67.     (if
  68.         (= 0 (run ("disk2file %ld \"%s/SpeedBall2.disk1\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  69.         ("")
  70.         (abort "\"disk2file\" must be in your PATH !")
  71.     )
  72.  
  73.  
  74. (exit)
  75.  
  76.