home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / misc / lotopro.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-10-18  |  5KB  |  165 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=\LOTTO
  18. cd %1%direct%
  19. cls
  20. echo  
  21. echo                 LOTTO PROPHECY 3.0 INSTALLATION
  22. echo  
  23. if exist %1pick30.exe goto Exists
  24. echo      The selected path for Lotto Prophecy 3.0 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. pro30 /e%1%direct%
  46. if errorlevel 1 goto CopyError
  47. docs /e%1%direct%
  48. if errorlevel 1 goto CopyError
  49. dbfiles /e%1%direct%
  50. if errorlevel 1 goto CopyError
  51. cd %1%direct%
  52. %1
  53. set direct=
  54. %1
  55. set direct=
  56.  
  57. echo  
  58. echo      Lotto Prophecy 3.0  has been installed. Type PICK6 at the
  59. echo                  DOS prompt  to start the  program.  
  60.  
  61. goto Exit
  62.  
  63. :help
  64.  
  65. echo      To  install  Lotto  Prophecy  3.0  on a floppy system type
  66. echo      INSTALL with either the drive identifier A: or B:  WITHOUT
  67. echo      A DIRECTORY NAME.
  68. echo  
  69. echo      To  install  Lotto  Prophecy  3.0  on  your  hard drive type A:
  70. echo      or B: to select the floppy drive containing  the Lotto Prophecy
  71. echo      3.0 distribution disk. Press a carriage  return  to select this
  72. echo      drive.  Then type INSTALL followed by the hard drive identifier
  73. echo      to receive the program.  For example:
  74. echo                           A:
  75. echo                           INSTALL C:
  76. echo      The default directory will be LOTTO.  If you would like to change
  77. echo      the default directory, you may enter the new directory after your
  78. echo      drive identifier.  For example:
  79. echo                           INSTALL C: \PRO
  80. echo      The SPACE MUST BE PRESENT BETWEEN THE DRIVE AND DIRECTORY  or the
  81. echo      install will not complete successfully.
  82. echo  
  83. echo      The installation can be aborted at any time by pressing a ^C (the
  84. echo      CONTROL and C keys at the same time).
  85.  
  86. goto Exit
  87.  
  88. :FloppyError
  89.  
  90. echo      Lotto  Prophecy 3.0 needs  two  360k  5 1/4  floppy's or one
  91. echo      high  density 5 1/4, or  one 3 1/2  floppy  standard or high
  92. echo      density. Lotto Prophecy requires at least 500k of disk space
  93. echo  
  94. echo      PUSH ANY KEY TO  CONTINUE  if you  have your blank formatted
  95. echo      floppy's ready. Or a ^C, (the CONTROL and C keys at the same
  96. echo      time) to ABORT.
  97. echo  
  98. pause > nul:
  99. echo  
  100. echo      The installation can be aborted at any time by pressing a ^C
  101. echo      (the CONTROL and C keys at the same time).
  102. echo  
  103. echo      Please wait, copying files ...
  104. echo  
  105. DOCS /e%1%
  106. if errorlevel 1 goto CopyError
  107. DBFILES /e%1%
  108. if errorlevel 1 goto CopyError
  109. echo  
  110. echo      If your are using 360k 5 1/4 floppy's insert another floppy NOW.
  111. echo      PUSH ANY KEY TO CONTINUE.......
  112. echo  
  113. pause > nul:
  114. echo      Please wait, copying files ...
  115. echo  
  116. pro30 /e%1%
  117. if errorlevel 1 goto CopyError
  118. %1
  119. %1
  120.  
  121. echo  
  122. echo      Lotto Prophecy 3.0  has been installed. Type PICK6 at the
  123. echo                  DOS prompt  to start the  program.  
  124.  
  125. goto Exit
  126.  
  127. :Exists
  128. echo  
  129. echo                            *** WARNING ***
  130. echo  
  131. echo      A  previous  copy  of  Lotto  Prophecy   exists on
  132. echo      your hard drive in %1%direct%.
  133. echo  
  134. echo      ALL DATABASE FILES WILL BE PRESERVED  
  135. echo  
  136. echo      You will see an "Unable to create directory" message.  This is
  137. echo      only a  warning;  the installation will continue successfully.
  138. echo  
  139. echo      Press any key to continue the installation or a ^C (the CONTROL
  140. echo      and C keys at the same time) to abort the installation.
  141. pause > nul:
  142. echo  
  143. echo      One Moment...........Checking HARD-DISK.................
  144.  
  145. if exist %1pick6.bat del %1pick6.bat
  146. if exist %1pick30.exe del %1pick30.exe
  147. if exist %1pick30.sys del %1pick30.sys
  148. if exist %1pick30.doc del %1pick30.doc
  149. if exist %1read.me del %1read.me
  150. goto Install
  151.  
  152. :CopyError
  153.  
  154. echo  
  155. echo      An error occurred creating the specified directory, or copying one
  156. echo      of  the  Lotto   Prophecy   3.0 files to your hard-disk or floppy.
  157. echo      At least 500K  of  disk  space must   be   available  to   install
  158. echo      Lotto  Prophecy 3.0.  CHKDSK can be used to verify that sufficient
  159. echo      space is available.
  160.  
  161. :Exit
  162.  
  163. echo  
  164. echo  
  165.