home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / HD / HD072.ZIP / INSTALL.BAT next >
DOS Batch File  |  1991-10-19  |  7KB  |  205 lines

  1. echo off
  2. cls
  3. :HelpCheck
  4.  
  5. if "%1"=="" goto help
  6.  
  7. :FloppyCheck
  8.  
  9. if "%1" == "A:" goto FloppyError
  10. if "%1" == "a:" goto FloppyError
  11. if "%1" == "B:" goto FloppyError
  12. if "%1" == "b:" goto FloppyError
  13.  
  14. :ShowDrive
  15.  
  16. set direct=%2
  17. if "%2"=="" set direct=\LOTTOT
  18. cd %1%direct%
  19. cls
  20. echo  
  21. echo                 LOTTO THUNDER INSTALLATION
  22. echo  
  23. if exist %1thunder.exe goto Exists
  24. echo      The selected path for Lotto Thunder is:
  25. echo  
  26. echo                    %1%direct%
  27. echo  
  28. echo      You may see an "Unable to create directory" message if the
  29. echo      directory is already present on your hard drive. This is only a
  30. echo      warning; the installation will continue successfully.
  31. echo  
  32. echo      Press any key to continue the installation or a ^C (the CONTROL
  33. echo      and C keys at the same time) to abort the installation.
  34.  
  35. pause > nul:
  36.  
  37. echo  
  38.  
  39. :Install
  40.  
  41. md %1%direct%
  42.  
  43. echo      Please wait, copying files ...
  44.  
  45. lottot /e%1%direct%
  46. if errorlevel 1 goto CopyError
  47. cd %1%direct%
  48. %1
  49. set direct=
  50. %1
  51. set direct=
  52.  
  53. echo  
  54. echo      Lotto Thunder   has been installed. Type TRUN at the
  55. echo                  DOS prompt  to start the  program.  
  56.  
  57. goto Exit
  58.  
  59. :help
  60.  
  61. echo      To install Lotto Thunder on your hard drive type A:
  62. echo      or B: to select the floppy drive containing the Lotto Thunder
  63. echo      distribution disk. Press a carriage return to select this
  64. echo      drive.  Then type INSTALL followed by the hard drive identifier
  65. echo      to receive the program.  For example:
  66. echo  
  67. echo                           A:
  68. echo                           INSTALL C:
  69. echo  
  70. echo      The default directory will be LOTTOT. If you would like to change
  71. echo      the default directory, you may enter the new directory after your
  72. echo      drive identifier.  For example:
  73. echo  
  74. echo                           INSTALL C: \PRO
  75. echo  
  76. echo      The SPACE MUST BE PRESENT BETWEEN THE DRIVE AND DIRECTORY or the
  77. echo      install will not complete successfully.
  78. echo  
  79. echo      The installation can be aborted at any time by pressing a ^C (the
  80. echo      CONTROL and C keys at the same time).
  81.  
  82. goto Exit
  83.  
  84. :FloppyError
  85.  
  86. echo      Lotto Thunder  can only be installed on a hard drive.
  87. echo      The  drive  letter must  be  a  hard  drive  identifier.
  88. echo      Please try again using the letter for your hard drive.
  89.  
  90. goto Exit
  91.  
  92. :Exists
  93. echo  
  94. echo                            *** WARNING ***
  95. echo  
  96. echo      A  previous  copy  of  Lotto  Thunder   exists on
  97. echo      your hard drive in %1%direct%.
  98. echo  
  99. echo      ALL DATABASE FILES WILL BE PRESERVED  
  100. echo  
  101. echo      You will see an "Unable to create directory" message.  This is
  102. echo      only a warning; the installation will continue successfully.
  103. echo  
  104. echo      Press any key to continue the installation or a ^C (the CONTROL
  105. echo      and C keys at the same time) to abort the installation.
  106. pause > nul:
  107. echo  
  108. echo      One Moment...........Checking HARD-DISK.................
  109.  
  110. if exist %1thunder.doc del %1thunder.doc
  111. if exist %1register.doc del %1register.doc
  112. if exist %1ombudsmn.asp del %1ombudsmn.asp
  113. if exist %1packing.lst del %1packing.lst
  114. if exist %1vendor.doc del %1vendor.doc
  115. if exist %1sysop.doc del %1sysop.doc
  116. if exist %1describe.doc del %1describe.doc
  117. if exist %1warranty.doc del %1warranty.doc
  118. if exist %1license.doc del %1license.doc
  119. if exist %1sitelice.doc del %1sitelice.doc
  120. if exist %1trun.bat del %1trun.bat
  121. if exist %1thunder.exe del %1thunder.exe
  122. if exist %1thunder.sys del %1thunder.sys
  123. if exist %1read.me del %1read.me
  124. if exist %1thund1.ovl del %1thund1.ovl
  125. if exist %1thund2.ovl del %1thund2.ovl
  126. if exist %1thund3.ovl del %1thund3.ovl
  127. if exist %1thund4.ovl del %1thund4.ovl
  128. if exist %1thund5.ovl del %1thund5.ovl
  129. if exist %1thund6.ovl del %1thund6.ovl
  130. if exist %1thund7.ovl del %1thund7.ovl
  131. if exist %1thund8.ovl del %1thund8.ovl
  132. if exist %1thund9.ovl del %1thund9.ovl
  133. if exist %1thund10.ovl del %1thund10.ovl
  134. if exist %1thund11.ovl del %1thund11.ovl
  135. if exist %1thund12.ovl del %1thund12.ovl
  136. if exist %1thund13.ovl del %1thund13.ovl
  137. if exist %1thund14.ovl del %1thund14.ovl
  138. if exist %1thund15.ovl del %1thund15.ovl
  139. if exist %1thund16.ovl del %1thund16.ovl
  140. if exist %1thund17.ovl del %1thund17.ovl
  141. if exist %1thund18.ovl del %1thund18.ovl
  142. if exist %1thund19.ovl del %1thund19.ovl
  143. if exist %1thund20.ovl del %1thund20.ovl
  144. if exist %1thund21.ovl del %1thund21.ovl
  145. if exist %1thund22.ovl del %1thund22.ovl
  146. if exist %1thund23.ovl del %1thund23.ovl
  147. if exist %1thund24.ovl del %1thund24.ovl
  148. if exist %1thund25.ovl del %1thund25.ovl
  149. if exist %1thund26.ovl del %1thund26.ovl
  150. if exist %1thund27.ovl del %1thund27.ovl
  151. if exist %1thund28.ovl del %1thund28.ovl
  152. if exist %1thund29.ovl del %1thund29.ovl
  153. if exist %1thund30.ovl del %1thund30.ovl
  154. if exist %1thund31.ovl del %1thund31.ovl
  155. if exist %1thund32.ovl del %1thund32.ovl
  156. if exist %1thund33.ovl del %1thund33.ovl
  157. if exist %1thund34.ovl del %1thund34.ovl
  158. if exist %1thund35.ovl del %1thund35.ovl
  159. if exist %1thund36.ovl del %1thund36.ovl
  160. if exist %1thund37.ovl del %1thund37.ovl
  161. if exist %1thund38.ovl del %1thund38.ovl
  162. if exist %1thund39.ovl del %1thund39.ovl
  163. if exist %1thund40.ovl del %1thund40.ovl
  164. if exist %1thund41.ovl del %1thund41.ovl
  165. if exist %1thund42.ovl del %1thund42.ovl
  166. if exist %1thund43.ovl del %1thund43.ovl
  167. if exist %1thund44.ovl del %1thund44.ovl
  168. if exist %1thund45.ovl del %1thund45.ovl
  169. if exist %1thund46.ovl del %1thund46.ovl
  170. if exist %1thund47.ovl del %1thund47.ovl
  171. if exist %1thund48.ovl del %1thund48.ovl
  172. if exist %1thund49.ovl del %1thund49.ovl
  173. if exist %1thund50.ovl del %1thund50.ovl
  174. if exist %1thund51.ovl del %1thund51.ovl
  175. if exist %1thund52.ovl del %1thund52.ovl
  176. if exist %1thund53.ovl del %1thund53.ovl
  177. if exist %1thund54.ovl del %1thund54.ovl
  178. if exist %1thund55.ovl del %1thund55.ovl
  179. if exist %1thund56.ovl del %1thund56.ovl
  180. if exist %1thund57.ovl del %1thund57.ovl
  181. if exist %1thund58.ovl del %1thund58.ovl
  182. if exist %1thund59.ovl del %1thund59.ovl
  183. if exist %1thund60.ovl del %1thund60.ovl
  184. if exist %1thund61.ovl del %1thund61.ovl
  185. if exist %1thund62.ovl del %1thund62.ovl
  186. if exist %1thund63.ovl del %1thund63.ovl
  187. goto Install
  188.  
  189. :CopyError
  190.  
  191. echo  
  192. echo      An error occurred creating the specified directory, or copying one
  193. echo      of  the  Lotto   Thunder   files    to   your   hard   disk.    At
  194. echo      least 1.3 megabytes of disk space must  be  available  to  install
  195. echo      Lotto  Thunder.   CHKDSK  can  be  used  to verify that sufficient
  196. echo      space is available.
  197. echo      If you cannot get the install batch file to work. You can copy the
  198. echo      file LOTTOT.EXE  to your  harddisk. Then type LOTTOT  at  the  DOS
  199. echo      prompt to start the self-extracting process.
  200.  
  201. :Exit
  202.  
  203. echo  
  204. echo  
  205.