home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 18 / amigaformatcd18.iso / -screenplay- / utilities / hd_installers / lotus3 / install-lotus3 < prev    next >
Text File  |  1997-08-03  |  2KB  |  83 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. (set #dest (tackon @default-dest @app-name))
  29.  
  30.  
  31. (copyfiles
  32.     (help @copyfiles-help)
  33.     (source "lotus3hd.readme")
  34.     (dest #dest)
  35.     (infos)
  36. )
  37.  
  38. (copyfiles
  39.     (help @copyfiles-help)
  40.     (source "Lotus3HD")
  41.     (dest #dest)
  42.     (infos)
  43. )
  44.  
  45. (set #CI_unit
  46.     (askchoice
  47.         (prompt "From which disk unit do you want\nto install the game")
  48.         (help    @askoptions-help)
  49.         (choices
  50.            "DF0:"
  51.            "DF1:"
  52.            "DF2:"
  53.            "DF3:"
  54.         )
  55.     )
  56. )
  57.  
  58.     (set #CI_drive ("DF%ld:" #CI_unit))
  59.  
  60. (makedir #dest
  61.     (help @makedir-help)
  62.     (infos)
  63. )
  64.  
  65. ;----------------------------
  66.  
  67. (message ("\nInsert Lotus 3 disk 1 into drive %s !" #CI_drive))
  68.  
  69.     (if
  70.         (= 0 (run ("grem2file %ld \"%s/lotus3.d1\" 2 102 >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  71.         ("")
  72.         (abort "\"grem2file\" must be in your PATH !")
  73.     )
  74.  
  75. (message ("\nInsert Lotus 3 disk 2 into drive %s !" #CI_drive))
  76.  
  77.     (if
  78.         (= 0 (run ("grem2file %ld \"%s/lotus3.d2\" 2 157 >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  79.         ("")
  80.         (abort "\"grem2file\" must be in your PATH !")
  81.     )
  82.  
  83.