home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 28 / amigaformatcd28.iso / -screenplay- / hd_installers / doe / install-doe < prev    next >
Text File  |  1998-04-23  |  1KB  |  68 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3.  
  4.  
  5. ;----------------------------
  6.  
  7. ;try to figure out a place where the user usually installs his games
  8. (if (exists "Games:" (noreq) )
  9.     (set @default-dest "Games:")
  10.     (if (exists "SYS:Games" (noreq) )
  11.         (set @default-dest "SYS:Games")
  12.         (if (exists "Work:Games" (noreq) )
  13.             (set @default-dest "Work:Games")
  14.             (if (exists "JEUX:" (noreq) )
  15.                (set @default-dest "JEUX:")
  16.                (set @default-dest "SYS:")
  17.             )
  18.         )
  19.     )
  20. )
  21.  
  22. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site")
  23.  
  24.  
  25. (set default-dest
  26. (askdir
  27.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  28.     (help @askdir-help)
  29.     (default @default-dest)
  30.     (disk)
  31. )
  32. )
  33.  
  34. (set #dest (tackon default-dest @app-name))
  35.  
  36.  
  37. (makedir #dest
  38.     (help @makedir-help)
  39.     (infos)
  40. )
  41.  
  42. ;----------------------------
  43.  
  44. (copyfiles
  45.     (help @copyfiles-help)
  46.     (source "DOEHD")
  47.     (dest #dest)
  48.     (infos)
  49. )
  50.  
  51. (copyfiles
  52.     (help @copyfiles-help)
  53.     (source "doehd.readme")
  54.     (dest #dest)
  55.     (infos)
  56. )
  57.  
  58. (message ("\nInsert %s disk into drive %s !" @app-name #CI_drive))
  59.     (if
  60.         (= 0 (run ("readdoedisk %ld \"%s/doe.d1\" 2 159 3 159 >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  61.         ("")
  62.         (abort "\"readdoedisk\" must be in your PATH !")
  63.     )
  64.  
  65.  
  66. (exit)
  67.  
  68.