home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / JACOB1S.ZIP / INSTALL.BAT < prev    next >
Encoding:
DOS Batch File  |  1995-06-04  |  5.8 KB  |  219 lines

  1. @ECHO OFF
  2. cls
  3. echo                            JACOB'S LADDER
  4. echo          Multi-Node Aware! More Than One Player At A Time!
  5. echo         -----------------------------------------------------
  6. echo         -----------------------------------------------------
  7. if "%1" == "new" goto go
  8. if "%1" == "upgrade" goto go
  9. if "%1" == "" goto exit
  10.  
  11. :exit
  12. echo ***** PLEASE RUN THE INSTALLATION WITH:
  13. echo If you are installing for the first time, please type:
  14. echo install new
  15. echo If you are installing an upgrade, please type:
  16. echo install upgrade
  17. goto end
  18.  
  19.  
  20. :go
  21. rem ***************************************
  22.  
  23. echo ***** Testing ability to set DOS attributes
  24. echo "TESTING ABILITY TO SET DOS ATTRIBUTES" > kill.txt
  25. attrib +R kill.txt
  26. del kill.txt
  27.  
  28. if not exist kill.txt goto ask
  29. if exist kill.txt goto kill3
  30.  
  31. rem ***************************************
  32.  
  33. :kill3
  34.    attrib -R kill.txt
  35.    del kill.txt
  36.    echo "Great! Passed DOS attribute test."
  37. echo         --------------------------------------------------
  38.    goto howto
  39.  
  40.  
  41. rem ***************************************
  42. :ask
  43. echo Installing JACOB'S LADDER requires that all *.txt and *.exe and *.ans files be
  44. echo set to READ ONLY by using the dos attribute command.
  45. echo .
  46. echo This installation procedure normally takes care of this automatically, 
  47. echo but it appears you do not have this DOS command.
  48. echo You must MANUALLY set your attributes for *.txt and *.exe and *.ans
  49. echo files to READ ONLY (+R) *AFTER* this installation completes. 
  50. echo .
  51. echo IF THIS IS AN UPGRADE: you must set all *.txt & *.exe & .ans files to 
  52. echo NOT READ ONLY *BEFORE* continuing so that the new files can 
  53. echo copy over the old files:
  54. echo ATTRIB -R *.*
  55. echo .
  56. echo If this is an upgrade, when it is done, you must set the attributes
  57. echo to NOT READ ONLY and perform the installation again so that the new
  58. echo files can copy over the old ones.
  59. echo If this is a new installation, please set the attributes AFTER
  60. echo the installation:
  61. echo ATTRIB +R *.ANS
  62. echo ATTRIB +R *.TXT
  63. echo ATTRIB +R *.EXE
  64. goto howto
  65. rem ***************************************
  66.  
  67. rem ***************************************
  68. :howto
  69. echo         --------------------------------------------------
  70. if "%1" == "new" goto one
  71. if "%1" == "upgrade" goto two
  72.  
  73.  
  74. rem *************************************** FIRST TIME INSTALL
  75. :one
  76. attrib -R *.*
  77.  
  78. if exist game.zip goto zip
  79. if exist game.arj goto arj
  80. if exist game.rar goto rar
  81. echo Appears Archive has been changed from ZIP, must be manually installed.
  82. goto end
  83.  
  84. :zip
  85. pkunzip game.zip
  86. del game.zip
  87. goto one2
  88.  
  89. :arj
  90. arj e game.arj
  91. del game.arj
  92. goto one2
  93.  
  94. :rar
  95. rar e game.rar
  96. del game.rar
  97. goto one2
  98.  
  99. :one2
  100. attrib +R sssgame.exe
  101. attrib +R *.txt
  102. attrib +R *.ANS
  103. goto success
  104. rem ***************************************
  105.  
  106.  
  107.  
  108. rem *************************************** UPGRADE
  109. :two
  110. attrib -R *.*
  111. rename maint.dbf mtemp1.dbf
  112.  
  113. rename players.cdx mtemp2.cdx
  114. rename players.dbf mtemp2.dbf
  115. rename hiscore.dbf mtemp3.dbf
  116. rename hiscore.cdx mtemp3.cdx
  117.  
  118. if exist game.zip goto zip2
  119. if exist game.arj goto arj2
  120. if exist game.rar goto rar2
  121. echo Appears Archive has been changed from ZIP, must be manually installed.
  122. goto end
  123.  
  124.  
  125. :zip2
  126. pkunzip game.zip
  127. del game.zip
  128. goto one3
  129.  
  130. :arj2
  131. arj e game.arj
  132. del game.arj
  133. goto one3
  134.  
  135. :rar2
  136. rar e game.rar
  137. del game.rar
  138. goto one3
  139.  
  140. :one3
  141. attrib +R sssgame.exe
  142. attrib +R *.txt
  143. attrib +R *.ANS
  144.  
  145. if exist mtemp1.dbf goto maint
  146. if not exist mtemp1.dbf goto go1
  147.  
  148. :maint
  149. del maint.dbf
  150. rename mtemp1.dbf maint.dbf
  151. del mtemp1.dbf
  152. goto go1
  153.  
  154. :go1
  155. if exist mtemp2.dbf goto play
  156. if not exist mtemp2.dbf goto go2
  157.  
  158. :play
  159. del players.dbf
  160. del players.cdx
  161. rename mtemp2.cdx players.cdx
  162. rename mtemp2.dbf players.dbf
  163. del mtemp2.dbf
  164. del mtemp2.cdx
  165. goto go2
  166.  
  167. :go2
  168. if exist mtemp3.dbf goto hiscore
  169. if not exist mtemp3.dbf goto go3
  170.  
  171. :hiscore
  172. del hiscore.dbf
  173. del hiscore.cdx
  174. rename mtemp3.cdx hiscore.cdx
  175. rename mtemp3.dbf hiscore.dbf
  176. del mtemp3.dbf
  177. del mtemp3.cdx
  178. goto go3
  179.  
  180. :go3
  181. cls
  182. goto success
  183.  
  184. rem ***************************************
  185.  
  186. :success
  187. echo         --------------------------------------------------
  188. echo         --------------------------------------------------
  189. echo Read the SYSOP1 & 2 .DOC files if you have not done so.
  190. echo A sample.bat file for calling sssgame.EXE is included.
  191. echo The name of the file is sample.bat. Please refer to it
  192. echo for calling JACOB'S LADDER from your node directory.
  193. echo         --------------------------------------------------
  194. echo A sample configuration file is included for those who
  195. echo REQUIRE it. If the game works fine when installing, you
  196. echo probably DO NOT NEED to use the configuration file at all
  197. echo and DO NOT NEED to even look at it.
  198. echo         --------------------------------------------------
  199. echo The sample.bat file tells how you must pass parameters on
  200. echo the command line for calling JACOB'S LADDER IE: Call the .exe,
  201. echo pass the drop file path and name, pass the node #, optionally
  202. echo pass the name of the configuration file. Drop file and node
  203. echo number must be passed even for single line BBS's.
  204. pause
  205. echo --------------------------------------------------------------
  206. echo sssgame c:\bbs\node1\dorinfo1.def 1 sss.cfg
  207. echo --------------------------------------------------------------
  208. echo FOR SYSOP MODE: sssgame sysop
  209. echo FOR MAINTENANCE MODE: New! New! Auto Reset Game Weekly or Monthly!
  210. echo Change to your Jacob directory, then:
  211. echo sssgame maint M    -- put in nightly maintenance for Monthly reset
  212. echo sssgame maint W    -- put in nightly maintenance for Weekly reset
  213. echo --------------------------------------------------------------
  214. echo SEE BEGINNING OF SYSOP1.DOC FOR QUICK DETAILS
  215. echo --------------------------------------------------------------
  216. goto end
  217.  
  218. :end
  219.