home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1993 May / SIMTEL_0593.ISO / _bbs / fwkcs / install.bat < prev    next >
DOS Batch File  |  1992-11-10  |  4KB  |  138 lines

  1. @echo off
  2. if exist go.bat go
  3. cls
  4. echo - Part of FWKCS(TM) Contents_Signature System, Version 1.19.
  5. echo - (C)Copyright Frederick W. Kantor 1989-1992. All rights reserved.
  6. echo -
  7. echo - Your use of the FWKCS(TM) Contents_Signature System is at solely your own
  8. echo - risk. For safety, please have proper backups of your files.
  9. echo -
  10. echo - INSTALL.BAT to install the FWKCS(TM) Contents_Signature System, Ver. 1.19;
  11. echo -  for use in same directory with FWKCS119.ZIP, FWKCS.119, and FWKCS_TM.119.
  12. echo -
  13. echo - Note: Before you start the installation, please have available on your PATH:
  14. echo -        Phil Katz's PKUNZIP(R), Version 1.10 or later.
  15. echo -        (IBM/MS) DOS 3.30-5.00, ATTRIB command (or IBM OS/2 2.0 DOS session).
  16. echo -
  17. echo - (More information provided as FWKCS.119 package is opened; see README.TXT.)
  18. echo -
  19. echo -              If you are replacing FWKCS Ver. 1.12 or later, use REPLACE.BAT.
  20. echo -              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  21. echo -
  22. echo -  Usage:     INSTALL "<enter>"
  23. if "%1" == "/*" goto end
  24. echo -
  25. echo -  If you are missing PKUNZIP, or ATTRIB, as above, stop now!
  26. echo -  To quit, press Ctrl+C, then y                    ~~~~~~~~
  27. echo -
  28. pause
  29. if not exist fwkcs119.zip goto nv119
  30. attrib -r fwkcs119.zip > nul
  31. if exist #@!#@!$$.@!@ del #@!#@!$$.@!@ > nul
  32. if exist #@!#@!$$.@!@ attrib -r #@!#@!$$.@!@ > nul
  33. if exist #@!#@!$$.@!@ del #@!#@!$$.@!@ > nul
  34. if exist @@!#@!$$.@!@ del @@!#@!$$.@!@ > nul
  35. if exist @@!#@!$$.@!@ attrib -r @@!#@!$$.@!@ > nul
  36. if exist @@!#@!$$.@!@ del @@!#@!$$.@!@ > nul
  37. if exist @@!#@$!$.@!@ del @@!#@$!$.@!@ > nul
  38. if exist @@!#@$!$.@!@ attrib -r @@!#@$!$.@!@ > nul
  39. if exist @@!#@$!$.@!@ del @@!#@$!$.@!@ > nul
  40. pkunzip @@!#@!$$.@!@ > nul
  41. if errorlevel 1 goto zex
  42. goto nz
  43. :zex
  44. cls
  45. if not exist fwkcstmp.119 goto n1
  46. if exist fwkhi.com del fwkhi.com > nul
  47. if exist fwkhi.com attrib -r fwkhi.com > nul
  48. if exist fwkhi.com del fwkhi.com > nul
  49. pkunzip -o fwkcstmp.119 fwkhi.com > nul
  50. if exist fwkhi.com goto n2
  51. :n1
  52. if not exist fwkcs.119 goto nd
  53. if not exist fwkcs_tm.119 goto cm
  54. ren fwkcs_tm.119 fwkcs_tm.com > nul
  55. fwkcs_tm < fwkcs.119 >fwkcstmp.119
  56. if errorlevel 1 goto fbad
  57. ren fwkcs_tm.com fwkcs_tm.119 > nul
  58. pkunzip -o fwkcstmp.119 fwkhi.com > nul
  59. if not exist fwkhi.com goto fz
  60. :n2
  61. cls
  62. echo -
  63. echo -  Should I enter FWKCS119.ZIP's contents_signatures for future reference?
  64. echo -
  65. echo -    Press either 0 or 1 to answer:   0 = NO.  1 = YES.
  66. echo -
  67. :ask1
  68. fwkhi
  69. if errorlevel 2 goto ask1
  70. if not errorlevel 1 goto nocs
  71. if exist fwkcs119.zip ren fwkcs119.zip @@!#@!$$.@!@ > nul
  72. if exist fwkcstmp.119 ren fwkcstmp.119 fwkcs119.zip > nul
  73. pkunzip -o fwkcs119.zip fwkcs.exe > nul
  74. fwkcs /1 fwkcs119.zip #@!#@!$$.@!@
  75. ren fwkcs119.zip fwkcstmp.119 > nul
  76. if exist @@!#@!$$.@!@ ren @@!#@!$$.@!@ fwkcs119.zip > nul
  77. if not exist fwkcs.exe pkunzip fwkcs119.zip fwkcs.exe > nul
  78. if exist fwkcs119.zip fwkcs /1 fwkcs119.zip >> #@!#@!$$.@!@
  79. fwkcs #@!#@!$$.@!@ /a7.8v",!" @@!#@$!$.@!@
  80. del #@!#@!$$.@!@ > nul
  81. fwkcs @@!#@$!$.@!@ /s
  82. fwkcs @@!#@$!$.@!@ nul myowncsl.srt /ms
  83. del @@!#@$!$.@!@ > nul
  84. del fwkcs.exe > nul
  85. :nocs
  86. pkunzip fwkcstmp.119 go.bat > nul
  87. if errorlevel 51 goto fz
  88. if errorlevel 50 goto ns
  89. if errorlevel 1 goto fz
  90. del fwkhi.com > nul
  91. go
  92. :nv119
  93. echo -
  94. echo -  INSTALL.BAT is for use in the same directory with all these
  95. echo -  files together:  FWKCS119.ZIP, FWKCS.119, and FWKCS_TM.119.
  96. goto try
  97. :ns
  98. del fwkcs119.tmp > nul
  99. echo -
  100. echo - There is apparently not enough space here for me to work in...
  101. echo -
  102. echo - After you have provided more space here, or moved my files to
  103. echo -   another drive with enough space,
  104. goto try
  105. :fz
  106. del fwkcs119.tmp > nul
  107. echo -
  108. echo - Error getting file(s).
  109. goto try
  110. :fbad
  111. del fwkcs119.tmp > nul
  112. ren fwkcs_tm.com fwkcs_tm.119 > nul
  113. echo -
  114. echo -  FWKCS.119 appears defective or incompatible. Execution aborted.
  115. :try
  116. echo -
  117. echo -  Please clean up, and try again. See README.TXT.
  118. goto end
  119. :nz
  120. echo -
  121. echo -  Where is Phil Katz's PKUNZIP(R)?
  122. echo -
  123. echo -  After getting this missing program,
  124. echo -
  125. echo -           Please try again.
  126. goto end
  127. :cm
  128. echo -
  129. echo -  I need FWKCS_TM.119.
  130. echo -
  131. echo -        I quit!
  132. goto end
  133. :nd
  134. echo -
  135. echo -    Nothing to do!
  136. :end
  137. echo -
  138.