home *** CD-ROM | disk | FTP | other *** search
/ Merciful 3 / Merciful_Release_3.bin / software / m / micro_mortal_tennis / micromortaltennis3.dms / micromortaltennis3.adf / HDInstall < prev    next >
Text File  |  1996-07-25  |  3KB  |  118 lines

  1. (complete 0)
  2.  
  3. (message "\n\nMikro Mortal Tennis Installer Script\n by Marco Pacifico of Skywards Software\n\nMake sure that you have got approx. 2Mb of free space on your harddrive.\n")
  4.  
  5. (set path
  6. (askdir
  7.    (prompt "Please select the disk or drawer in which should the"
  8.            " Mikro Mortal Tennis drawer be created. ")
  9.    (help
  10.         "\nThe installation utility will create a drawer named"
  11.         " \"MMT\" in this directory. All Mikro Mortal Tennis files"
  12.         " will be placed inside that directory.\n\n"
  13.         "The selected directory must have about 2Mb free storage"
  14.         " left.\n\n"
  15.    )
  16.    (default "SYS:")
  17.    )
  18. )
  19.  
  20. (set space (getdiskspace(path)) )
  21. (set spaceneeded (+ 2000000) )
  22.  
  23. ( if (< space spaceneeded )
  24.  (abort ("I have found only %ld bytes free!!\nI need almost 2Mb to install MMT!!" space))
  25. )
  26.  
  27. (copyfiles   (source "MMT3:")
  28.              (dest path)
  29.              (choices
  30.                 "Install/MMT.info"
  31.              )
  32.             (prompt "copying required files to harddrive")
  33.             (help "No help")
  34. )
  35.  
  36. (makedir (tackon path "MMT"))
  37. (set path (tackon path "MMT"))
  38. (makedir (tackon path "Libs"))
  39. (makedir (tackon path "MMTSaveDisk"))
  40. (set @default-dest path)
  41.  
  42. (working "Installing Mikro Mortal Tennis")
  43.  
  44. (askdisk
  45.     (prompt "Please insert the disk labeled \"MMT3\"")
  46.     (help "No help")
  47.     (dest "MMT3" )
  48. )
  49.  
  50. (copyfiles   (source "MMT3:")
  51.              (dest path)
  52.              (choices
  53.                 "Data" "End" "Install/MMT-Start.info"
  54.              )
  55.             (prompt "copying required files to harddrive")
  56.             (help "No help")
  57. )
  58.  
  59. (complete 40)
  60.  
  61. (askdisk
  62.     (prompt "Please insert the disk labeled \"MMT1\"")
  63.     (help "No help")
  64.     (dest "MMT1" )
  65. )
  66.  
  67. (copyfiles   (source "MMT1:Libs/AMOS.library")
  68.              (dest (tackon path "Libs"))
  69.             (help "No help")
  70. )
  71.  
  72. (copyfiles   (source "MMT1:")
  73.              (dest path)
  74.              (choices
  75.                 "Data" "Intro" "Menu"
  76.              )
  77.             (prompt "copying required files to harddrive")
  78.              (help "No help")
  79. )
  80.  
  81. (complete 70)
  82.  
  83. (askdisk
  84.     (prompt "Please insert the disk labeled \"MMT2\"")
  85.     (help "No help")
  86.     (dest "MMT2" )
  87. )
  88.  
  89. (copyfiles   (source "MMT2:")
  90.              (dest path)
  91.              (choices
  92.                 "Data" "Game" "Main"
  93.              )
  94.             (prompt "copying required files to harddrive")
  95.             (help "No help")
  96. )
  97.  
  98. (complete 95)
  99.  
  100. (run "echo Assign MMT1: >>Ram:MMT-Start" path)
  101. (run "echo Assign MMT2: >>Ram:MMT-Start" path)
  102. (run "echo Assign MMT3: >>Ram:MMT-Start" path)
  103. (run "echo Assign MMTSaveDisk: >>Ram:MMT-Start" (tackon path "MMTSaveDisk"))
  104. (run "echo Assign Libs: >>Ram:MMT-Start" (tackon path "Libs Add"))
  105. (run "echo MMT1:Intro >>Ram:MMT-Start")
  106.  
  107. (copyfiles
  108.    (source "Ram:MMT-Start")
  109.    (dest path)
  110. )
  111.  
  112. (run "delete RAM:MMT-Start")
  113.  
  114. (complete 100)
  115. (message "\n\nMikro Mortal Tennis has now been installed on your harddrive. We hope you will enjoy this game as much as we do.\nHave Fun!")
  116.  
  117. (exit)
  118.