home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 101 / af101b.adf / installers.lzx / Installers / RenegadePack / RuffNTumble / Install-RuffNTumble < prev    next >
Text File  |  2016-11-17  |  2KB  |  85 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. (set #CI_unit
  30.     (askchoice
  31.         (prompt "From which disk unit do you want\nto install the game")
  32.         (help    @askoptions-help)
  33.         (choices
  34.            "DF0:"
  35.            "DF1:"
  36.            "DF2:"
  37.            "DF3:"
  38.         )
  39.     )
  40. )
  41.  
  42. (set #CI_drive ("DF%ld:" #CI_unit))
  43.  
  44.  
  45.  
  46.  
  47. (makedir #dest
  48.     (help @makedir-help)
  49.     (infos)
  50. )
  51.  
  52. ;----------------------------
  53.  
  54. (copyfiles
  55.     (help @copyfiles-help)
  56.     (source "RuffNTumbleHD")
  57.     (dest #dest)
  58.     (infos)
  59. )
  60.  
  61. (copyfiles
  62.     (help @copyfiles-help)
  63.     (source "ruffhd.readme")
  64.     (dest #dest)
  65.     (infos)
  66. )
  67.  
  68. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  69.     (if
  70.         (= 0 (run ("disk2file %ld \"%s/Ruff.disk1\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  71.         ("")
  72.         (abort "\"disk2file\" must be in your PATH !")
  73.     )
  74.  
  75. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  76.     (if
  77.         (= 0 (run ("disk2file %ld \"%s/Ruff.disk2\" >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  78.         ("")
  79.         (abort "\"disk2file\" must be in your PATH !")
  80.     )
  81.  
  82.  
  83. (exit)
  84.  
  85.