home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 323.img / NSFTINC2.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-09-25  |  6KB  |  168 lines

  1. echo off
  2.  
  3. REM This install program copies to %1\NIGHT :
  4. REM
  5. REM From Disk 1:
  6. REM IML.EXE
  7. REM *.CMP                    must include DISK_1.CMP
  8. REM
  9. REM From Disk 2:
  10. REM *.CMP                    must include DISK_2.CMP
  11. REM
  12. REM From Disk 3:
  13. REM *.CMP                    must include DISK_3.CMP
  14. REM
  15. REM
  16. REM A check is made after copying each disk that it has copied the correct
  17. REM files, e.g. IML.EXE & DISK_1.CMP after copying disk 1 etc.
  18.  
  19. cls
  20.  
  21. if "%1" == "" goto DriveNeeded
  22. if %1 == c: goto MakeDirectory
  23. if %1 == C: goto MakeDirectory
  24. if %1 == d: goto MakeDirectory
  25. if %1 == D: goto MakeDirectory
  26. if %1 == e: goto MakeDirectory
  27. if %1 == E: goto MakeDirectory
  28. if %1 == f: goto MakeDirectory
  29. if %1 == F: goto MakeDirectory
  30. if %1 == g: goto MakeDirectory
  31. if %1 == G: goto MakeDirectory
  32. if %1 == h: goto MakeDirectory
  33. if %1 == H: goto MakeDirectory
  34. if %1 == i: goto MakeDirectory
  35. if %1 == I: goto MakeDirectory
  36. if %1 == j: goto MakeDirectory
  37. if %1 == J: goto MakeDirectory
  38. if %1 == k: goto MakeDirectory
  39. if %1 == K: goto MakeDirectory
  40. if %1 == l: goto MakeDirectory
  41. if %1 == L: goto MakeDirectory
  42. if %1 == m: goto MakeDirectory
  43. if %1 == M: goto MakeDirectory
  44. if %1 == n: goto MakeDirectory
  45. if %1 == N: goto MakeDirectory
  46. if %1 == o: goto MakeDirectory
  47. if %1 == O: goto MakeDirectory
  48. if %1 == p: goto MakeDirectory
  49. if %1 == P: goto MakeDirectory
  50.  
  51. :InvalidDrive
  52. echo "%1" is an invalid drive name.  Please use the drive's letter
  53. echo followed by a colon:
  54. goto Example
  55.  
  56. :DriveNeeded
  57. echo Please specify which drive to install Night Shift on, for example:
  58. :Example
  59. echo 
  60. echo         install c:
  61. goto End
  62.  
  63. :MakeDirectory
  64. echo ╔══════════════════════════════════════════════════════════════════════════╗
  65. echo ║                                                                          ║
  66. echo ║                Night Shift (TM) Hard Disk Install Utility                ║
  67. echo ║                                                                          ║
  68. echo ║                                                                          ║
  69. echo ║ This program will install all of the Night Shift files into a directory  ║
  70. echo ║ called "NIGHT" on drive %1.  If you do not wish to do this, then press   ║
  71. echo ║ Ctrl-C now.                                                              ║
  72. echo ║                                                                          ║
  73. echo ╚══════════════════════════════════════════════════════════════════════════╝
  74. echo 
  75. pause
  76. echo 
  77.  
  78. if exist %1\night\*.* goto DirectoryExists
  79. mkdir %1\night
  80. goto Inst1
  81.  
  82. :DirectoryExists
  83. echo WARNING:  The directory %1\NIGHT already exists.
  84. echo           Press Ctrl-C now if you don't want to overwrite the contents of
  85. echo           that directory.
  86. echo 
  87. pause
  88. echo 
  89. del %1\night\*.cmp > NUL
  90.  
  91. :Inst1
  92. if exist disk_1.cmp goto Copy1
  93. echo Please insert Night Shift disk 1, then press any key to continue...
  94. pause > NUL
  95. goto Inst1
  96. :Copy1
  97.  
  98. echo Copying files to %1\NIGHT...
  99. copy iml.exe %1\night > NUL
  100. copy *.cmp %1\night > NUL
  101.  
  102. if not exist %1\night\iml.exe goto InstError
  103. if not exist %1\night\disk_1.cmp goto InstError
  104.  
  105. if exist %1\night\disk_2.cmp goto Insted2
  106. :Inst2
  107. if exist disk_2.cmp goto Copy2
  108. echo Please insert Night Shift disk 2, then press any key to continue...
  109. pause > NUL
  110. goto Inst2
  111. :Copy2
  112.  
  113. echo Copying files to %1\NIGHT...
  114. copy *.cmp %1\night > NUL
  115.  
  116. if not exist %1\night\disk_2.cmp goto InstError
  117.  
  118. :Insted2
  119. if exist %1\night\disk_3.cmp goto Insted3
  120. :Inst3
  121. if exist disk_3.cmp goto Copy3
  122. echo Please insert Night Shift disk 3, then press any key to continue...
  123. pause > NUL
  124. goto Inst3
  125. :Copy3
  126.  
  127. echo Copying files to %1\NIGHT...
  128. copy *.cmp %1\night > NUL
  129.  
  130. if not exist %1\night\disk_3.cmp goto InstError
  131.  
  132. :Insted3
  133.  
  134. %1
  135. cd %1\night
  136. cls
  137. echo ╔════════════════════════════════════════════════════════════════════════╗
  138. echo ║     Night Shift has been successfully installed onto your hard disk.   ║
  139. echo ║                                                                        ║
  140. echo ║     To run Night Shift, enter   CD \NIGHT                              ║
  141. echo ║     then enter                  IML                                    ║
  142. echo ║                                                                        ║
  143. echo ║     You can also start Night Shift using the following options:        ║
  144. echo ║                                                                        ║
  145. echo ║     v      VGA graphics                                                ║
  146. echo ║     m      MCGA graphics                                               ║
  147. echo ║     e      EGA graphics                                                ║
  148. echo ║     t      TANDY graphics                                              ║
  149. echo ║     f      Run game in fast mode                                       ║
  150. echo ║     z      Adjust for non-standard EGA cards                           ║
  151. echo ║     2      Use 2 floppy drives                                         ║
  152. echo ║     i      Normal sounds (internal speaker)                            ║
  153. echo ║     a      AdLib Music Synthesizer or CMS/Soundblaster sounds          ║
  154. echo ║     g      CMS/GameBlaster sounds                                      ║
  155. echo ║     g1..g7 Force CMS card addresses                                    ║
  156. echo ║     x      Tandy sounds                                                ║
  157. echo ║     s      All sound effects & music OFF                               ║
  158. echo ║                                                                        ║
  159. echo ║     Example:   IML e a   - for EGA graphics and AdLib sounds           ║
  160. echo ╚════════════════════════════════════════════════════════════════════════╝
  161. goto End
  162.  
  163. :InstError
  164. echo ERROR:  Installation of Night Shift into %1\NIGHT was unsuccessful.
  165. echo         This might be because your hard disk is full.  Night Shift
  166. echo         needs at least 900K of free disk space.
  167. :End
  168.