home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 101 / af101b.adf / installers.lzx / Installers / RenegadePack / Cadaver / Install-Cadaver < prev    next >
Text File  |  2016-03-18  |  2KB  |  110 lines

  1. ; Ask the user what to install
  2. (set #install-datadisks
  3.     (askoptions
  4.         (prompt    "Which data disk do you want to install ?")
  5.         (help    @askoptions-help)
  6.         (choices
  7.             "Program Disk"
  8.             "Original Levels"
  9.             "Payoff Levels"
  10.         )
  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.  
  50. (copyfiles
  51.     (help @copyfiles-help)
  52.     (source "cadaverhd.readme")
  53.     (dest #dest)
  54.     (infos)
  55. )
  56.  
  57. (if (BITAND #install-datadisks 1)
  58.     (
  59.         (message ("\nInsert %s Program Disk into drive %s !" @app-name #CI_drive))
  60.             (if
  61.                 (= 0 (run ("disk2file %ld \"%s/Cadaver.d1\" >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  62.                 ("")
  63.                 (abort "\"disk2file\" must be in your PATH !")
  64.             )
  65.     )
  66.  
  67. )
  68.  
  69.  
  70. (if (BITAND #install-datadisks 2)
  71.     (
  72.         (copyfiles
  73.             (help @copyfiles-help)
  74.             (source "CadaverHD")
  75.             (dest #dest)
  76.         (infos)
  77.         )
  78.  
  79.         (message ("\nInsert %s Original Levels into drive %s !" @app-name #CI_drive))
  80.             (if
  81.                 (= 0 (run ("disk2file %ld \"%s/Cadaver.d2\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  82.                 ("")
  83.                 (abort "\"disk2file\" must be in your PATH !")
  84.             )
  85.     )
  86.  
  87. )
  88.  
  89. (if (BITAND #install-datadisks 4)
  90.     (
  91.         (copyfiles
  92.             (help @copyfiles-help)
  93.             (source "PayoffHD")
  94.             (dest #dest)
  95.         (infos)
  96.         )
  97.  
  98.         (message ("\nInsert %s The Payoff Levels into drive %s !" @app-name #CI_drive))
  99.             (if
  100.                 (= 0 (run ("disk2file %ld \"%s/Cadaver.d3\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  101.                 ("")
  102.                 (abort "\"disk2file\" must be in your PATH !")
  103.               )
  104.       )
  105.  
  106.  
  107. )
  108. (exit)
  109.  
  110.