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