home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / SPIELE / ROLLEN / MYSTERIU / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-12-01  |  4KB  |  124 lines

  1. echo off
  2. cls
  3. rem --- make sure the user specified valid drive letter (we allow A to H)
  4. rem     for both the source and dest drives.
  5. if %1a == a goto noDriveSpecified
  6. if %1 == a: goto checkDest
  7. if %1 == A: goto checkDest
  8. if %1 == b: goto checkDest
  9. if %1 == B: goto checkDest
  10. if %1 == c: goto checkDest
  11. if %1 == C: goto checkDest
  12. if %1 == d: goto checkDest
  13. if %1 == D: goto checkDest
  14. if %1 == e: goto checkDest
  15. if %1 == E: goto checkDest
  16. if %1 == f: goto checkDest
  17. if %1 == F: goto checkDest
  18. if %1 == g: goto checkDest
  19. if %1 == G: goto checkDest
  20. if %1 == h: goto checkDest
  21. if %1 == H: goto checkDest
  22. goto notOnThatDrive
  23. :checkDest
  24. if %2a == a goto noDriveSpecified
  25. if %1 == a: goto begin
  26. if %1 == A: goto begin
  27. if %1 == b: goto begin
  28. if %1 == B: goto begin
  29. if %2 == c: goto begin
  30. if %2 == C: goto begin
  31. if %2 == d: goto begin
  32. if %2 == D: goto begin
  33. if %2 == e: goto begin
  34. if %2 == E: goto begin
  35. if %2 == f: goto begin
  36. if %2 == F: goto begin
  37. if %2 == g: goto begin
  38. if %2 == G: goto begin
  39. if %1 == h: goto begin
  40. if %1 == H: goto begin
  41. :begin
  42. echo ╔═══════════════════════════════════════════════════════════════════════╗
  43. echo ║                                                                       ║
  44. echo ║                   ZWO: MYSTERIUM Installation                         ║
  45. echo ║                                                                       ║
  46. echo ║ This will create a directory called %2\MYST on your destination disk, ║
  47. echo ║ and will install MYSTERIUM in that directory.                         ║
  48. echo ║                                                                       ║
  49. echo ║ If you don't want to install MYSTERIUM now, press Ctrl-Break.         ║
  50. echo ║                                                                       ║
  51. echo ╚═══════════════════════════════════════════════════════════════════════╝
  52. pause
  53.  
  54. rem --- create \myst on the current drive.
  55. echo 
  56. echo Creating directory %2\myst...
  57. if not exist %2\myst\*.* goto go_on
  58. rem --- \myst dir already exists.
  59. :directoryExists
  60. echo 
  61. echo There is already a \myst directory on drive %2.  If you don't want to
  62. echo install ZWO:MYSTERIUM into that directory, press Ctrl-Break.
  63. echo Otherwise, press any key to install ZWO:MYSTERIUM into %2\MYST.
  64. pause
  65. goto go_on2
  66. :go_on
  67. md %2\myst
  68. :go_on2
  69.  
  70. echo 
  71. echo Insert MYSTERIUM Disk One in drive %1.
  72. pause
  73.  
  74. rem --- one-disk install (for 3.5" disk).
  75. :oneDiskInstall
  76. echo 
  77. echo Copying MYST files...
  78. copy %1\*.* %2\myst
  79.  
  80.  
  81. rem --- installation was successful!
  82. :installDone
  83. cd %1\myst
  84. c:
  85. cd\myst
  86. myst
  87. del myst.exe
  88. echo 
  89. echo MYSTERIUM is now installed on your destination disk.To run it,type "MYSTER.exe".
  90. %2
  91. goto done
  92.  
  93. rem --- user didn't specify a drive letter followed by a colon.
  94. :noDriveSpecified
  95. echo 
  96. echo Installation Error:  To install MYSTERIUM, you must specify the drive
  97. echo containing the floppies that you are installing FROM, and the drive
  98. echo you are installing TO.  For example: if you are installing from
  99. echo floppy drive A: to hard drive C:, then you should type
  100. echo     INSTALL A: C:
  101. echo ...and press Enter.
  102. goto errorDone
  103.  
  104. rem --- user specified invalid drive letter.
  105. :notOnThatDrive
  106. echo 
  107. echo Installation Error: Each drive letter must be a letter from A to H,
  108. echo and must be followed by a colon.  For example, "INSTALL A: C:" will
  109. echo install MYSTERIUM from floppies on drive A: to hard drive C:.
  110. goto errorDone
  111.  
  112. rem --- general installation error.
  113. :installationError
  114. echo 
  115. echo Installation Error: Perhaps there isn't enough space on your destination
  116. echo disk.  MYSTERIUM installation requires at least 720k free space.
  117. goto errorDone
  118.  
  119. rem --- goto here after an error is detected, to print a message and exit.
  120. :errorDone
  121. echo 
  122. echo MYSTERIUM was not installed correctly.
  123. :done
  124.