home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 34 / rbsii1.iso / amiga / patches / princehd.lzx / Prince / Install-Prince next >
Text File  |  1997-10-15  |  1KB  |  65 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. (message "\n\n\nThis loader need 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")
  20.  
  21.  
  22. (set default-dest
  23. (askdir
  24.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  25.     (help @askdir-help)
  26.     (default @default-dest)
  27.     (disk)
  28. )
  29. )
  30.  
  31. (set #dest (tackon default-dest @app-name))
  32.  
  33.  
  34. (makedir #dest
  35.     (help @makedir-help)
  36.     (infos)
  37. )
  38.  
  39. ;----------------------------
  40.  
  41. (copyfiles
  42.     (help @copyfiles-help)
  43.     (source "PrinceHD")
  44.     (dest #dest)
  45.     (infos)
  46. )
  47.  
  48. (copyfiles
  49.     (help @copyfiles-help)
  50.     (source "princehd.readme")
  51.     (dest #dest)
  52.     (infos)
  53. )
  54.  
  55. (message ("\nInsert %s disk into drive DF0: !" @app-name))
  56.     (if
  57.         (= 0 (run ("rippopdisk \"%s\" >con:///1000//CLOSE/WAIT" (tackon #dest "Prince.disk1") )))
  58.         ("")
  59.         (abort "\"rippopdisk\" must be in your PATH !")
  60.     )
  61.  
  62.  
  63. (exit)
  64.  
  65.