home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1997 #4 / amigaacscoverdisc1997-041997.iso / games / installers / x-out / install-xout < prev    next >
Text File  |  1997-06-16  |  2KB  |  89 lines

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