home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 101 / af101b.adf / installers.lzx / Installers / CoreDesign / Blastar / Install-Blastar < prev    next >
Text File  |  2016-01-17  |  2KB  |  90 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. (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.  
  44. (makedir #dest
  45.     (help @makedir-help)
  46.     (infos)
  47. )
  48.  
  49. ;----------------------------
  50.  
  51. (copyfiles
  52.     (help @copyfiles-help)
  53.     (source "BlastarHD")
  54.     (dest #dest)
  55.     (infos)
  56. )
  57.  
  58. (copyfiles
  59.     (help @copyfiles-help)
  60.     (source "blastarhd.readme")
  61.     (dest #dest)
  62.     (infos)
  63. )
  64.  
  65.  
  66. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  67.     (if
  68.         (= 0 (run ("disk2file %ld \"%s/Blastar.disk1\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  69.         ("")
  70.         (abort "\"disk2file\" must be in your PATH !")
  71.     )
  72.  
  73. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  74.     (if
  75.         (= 0 (run ("disk2file %ld \"%s/Blastar.disk2\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  76.         ("")
  77.         (abort "\"disk2file\" must be in your PATH !")
  78.     )
  79.  
  80. (message ("\nInsert %s disk 3 into drive %s !" @app-name #CI_drive))
  81.     (if
  82.         (= 0 (run ("disk2file %ld \"%s/Blastar.disk3\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  83.         ("")
  84.         (abort "\"disk2file\" must be in your PATH !")
  85.     )
  86.  
  87.  
  88. (exit)
  89.  
  90.