home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 101 / af101b.adf / installers.lzx / Installers / RenegadePack / Gods / Install-Gods < prev    next >
Text File  |  2017-01-17  |  2KB  |  80 lines

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