home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / dbase / fwkcs120.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-05-28  |  6KB  |  174 lines

  1. @echo off
  2. if exist go.bat go
  3. cls
  4. echo -
  5. echo -            Your use of this software is at solely your own risk.
  6. echo -            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  7. echo -
  8. echo - This software is intended for use under DOS 3.30 or later, or in a suitable
  9. echo - DOS session under a multitasking system (including IBM OS/2 2.0 or later).
  10. echo -
  11. echo -       If you encounter any system conflicts when using this software,
  12. echo -       please check your system configuration (and DOS session settings).
  13. echo -
  14. echo -       If the problem remains, please advise the author at
  15. echo -
  16. echo -
  17. echo -                             Fred Kantor
  18. echo -                             523 West 112 Street
  19. echo -                             New York, NY 10025
  20. echo -
  21. echo -
  22. echo - Note: The Client/Host configuration, Split Testing, and the automatic
  23. echo -       text interpretation functions, are reserved for registered FWKCS(TM).
  24. echo -       (see REGISTER.FRM)
  25. echo -
  26. pause
  27. cls
  28. echo - Part of FWKCS(TM) Contents_Signature System, Version 1.20.
  29. echo - (C)Copyright Frederick W. Kantor 1989-1993. All rights reserved.
  30. echo -
  31. echo - Your use of the FWKCS(TM) Contents_Signature System is at solely your own
  32. echo - risk. For safety, please have proper backups of your files.
  33. echo -
  34. echo - INSTALL.BAT to install the FWKCS(TM) Contents_Signature System, Ver. 1.20;
  35. echo -  for use in same directory with FWKCS120.ZIP, FWKCS.120, and FWKCS_TM.120.
  36. echo -
  37. echo - Note: Before you start the installation, please have available on your PATH:
  38. echo -
  39. echo -              Phil Katz's PKUNZIP(R), Version 2.04g or later.
  40. echo -
  41. echo - (More information provided as FWKCS.120 package is opened; see README.TXT.)
  42. echo -
  43. echo -              If you are replacing FWKCS Ver. 1.12 or later, use REPLACE.BAT.
  44. echo -              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  45. echo -
  46. echo -  Usage:     INSTALL "<enter>"
  47. if "%1" == "/*" goto end
  48. echo -
  49. echo -  If you are missing PKUNZIP as above, stop now!
  50. echo -  To quit, press Ctrl+C, then y        ~~~~~~~~
  51. echo -
  52. pause
  53. if not exist fwkcs120.zip goto nv120
  54. attrib -r fwkcs120.zip > nul
  55. if exist replm120.120 del replm120.120 > nul
  56. if exist replm120.120 attrib -r replm120.120 > nul
  57. if exist replm120.120 del replm120.120 > nul
  58. if exist #@!#@!$$.@!@ del #@!#@!$$.@!@ > nul
  59. if exist #@!#@!$$.@!@ attrib -r #@!#@!$$.@!@ > nul
  60. if exist #@!#@!$$.@!@ del #@!#@!$$.@!@ > nul
  61. if exist @@!#@!$$.@!@ del @@!#@!$$.@!@ > nul
  62. if exist @@!#@!$$.@!@ attrib -r @@!#@!$$.@!@ > nul
  63. if exist @@!#@!$$.@!@ del @@!#@!$$.@!@ > nul
  64. if exist @@!#@$!$.@!@ del @@!#@$!$.@!@ > nul
  65. if exist @@!#@$!$.@!@ attrib -r @@!#@$!$.@!@ > nul
  66. if exist @@!#@$!$.@!@ del @@!#@$!$.@!@ > nul
  67. pkunzip @@!#@!$$.@!@ > nul
  68. if errorlevel 1 goto zex
  69. goto nz
  70. :zex
  71. cls
  72. if not exist fwkcstmp.120 goto n1
  73. if exist fwkhi.com del fwkhi.com > nul
  74. if exist fwkhi.com attrib -r fwkhi.com > nul
  75. if exist fwkhi.com del fwkhi.com > nul
  76. pkunzip -o fwkcstmp.120 fwkhi.com > nul
  77. if exist fwkhi.com goto n2
  78. :n1
  79. if not exist fwkcs.120 goto nd
  80. if not exist fwkcs_tm.120 goto cm
  81. ren fwkcs_tm.120 fwkcs_tm.com > nul
  82. fwkcs_tm < fwkcs.120 >fwkcstmp.120
  83. if errorlevel 1 goto fbad
  84. ren fwkcs_tm.com fwkcs_tm.120 > nul
  85. pkunzip -o fwkcstmp.120 fwkhi.com > nul
  86. if not exist fwkhi.com goto fz
  87. :n2
  88. cls
  89. echo -
  90. echo -  Should I enter FWKCS120.ZIP's contents_signatures for future reference?
  91. echo -
  92. echo -  (Because of the way the files are packaged, this step is provided to make
  93. echo -  it much easier to capture their contents_signatures. Unless you have a
  94. echo -  good reason to not do so, it is suggested that you press 1 for YES.)
  95. echo -
  96. echo -    Press either 0 or 1 to answer:   0 = NO.  1 = YES.
  97. echo -
  98. :ask1
  99. fwkhi
  100. if errorlevel 2 goto ask1
  101. if not errorlevel 1 goto nocs
  102. if exist myowncsl.srt del myowncsl.srt > nul
  103. if exist myowncsl.srt attrib -r myowncsl.srt > nul
  104. if exist myowncsl.srt del myowncsl.srt > nul
  105. if exist fwkcs120.zip ren fwkcs120.zip @@!#@!$$.@!@ > nul
  106. ren fwkcstmp.120 fwkcs120.zip > nul
  107. pkunzip -o fwkcs120.zip fwkcs.exe > nul
  108. fwkcs /1 fwkcs120.zip #@!#@!$$.@!@
  109. ren fwkcs120.zip fwkcstmp.120 > nul
  110. if exist @@!#@!$$.@!@ ren @@!#@!$$.@!@ fwkcs120.zip > nul
  111. if not exist fwkcs.exe pkunzip fwkcs120.zip fwkcs.exe > nul
  112. if exist fwkcs120.zip fwkcs /1 fwkcs120.zip >> #@!#@!$$.@!@
  113. fwkcs #@!#@!$$.@!@ /a7.8v",!" @@!#@$!$.@!@
  114. del #@!#@!$$.@!@ > nul
  115. fwkcs @@!#@$!$.@!@ /s
  116. fwkcs @@!#@$!$.@!@ nul myowncsl.srt /ms
  117. del @@!#@$!$.@!@ > nul
  118. del fwkcs.exe > nul
  119. :nocs
  120. pkunzip fwkcstmp.120 go.bat > nul
  121. if errorlevel 51 goto fz
  122. if errorlevel 50 goto ns
  123. if errorlevel 1 goto fz
  124. del fwkhi.com > nul
  125. go
  126. :nv120
  127. echo -
  128. echo -  INSTALL.BAT is for use in the same directory with all these
  129. echo -  files together:  FWKCS120.ZIP, FWKCS.120, and FWKCS_TM.120.
  130. goto try
  131. :ns
  132. del fwkcs120.tmp > nul
  133. echo -
  134. echo - There is apparently not enough space here for me to work in...
  135. echo -
  136. echo - After you have provided more space here, or moved my files to
  137. echo -   another drive with enough space,
  138. goto try
  139. :fz
  140. del fwkcs120.tmp > nul
  141. echo -
  142. echo -  Error getting file(s).
  143. goto try
  144. :fbad
  145. del fwkcs120.tmp > nul
  146. ren fwkcs_tm.com fwkcs_tm.120 > nul
  147. echo -
  148. echo -  FWKCS.120 or FWKCS_TM.120 appears defective or incompatible.
  149. echo -
  150. echo -  Execution aborted.
  151. :try
  152. echo -
  153. echo -  Please clean up, and try again. See README.TXT.
  154. goto end
  155. :nz
  156. echo -
  157. echo -  Where is Phil Katz's PKUNZIP(R)?
  158. echo -
  159. echo -  After getting this missing program,
  160. echo -
  161. echo -           Please try again.
  162. goto end
  163. :cm
  164. echo -
  165. echo -  I need FWKCS_TM.120.
  166. echo -
  167. echo -        I quit!
  168. goto end
  169. :nd
  170. echo -
  171. echo -    Nothing to do!
  172. :end
  173. echo -
  174.