home *** CD-ROM | disk | FTP | other *** search
/ Multimedia & CD-ROM 3 / mmcd03-jun1995-cd.iso / utils / virus / scan / install.bat < prev    next >
DOS Batch File  |  1995-04-19  |  8KB  |  273 lines

  1. rem 11/30/94  This installation batch file written by G.E. Gayles
  2. rem for McAfee Associates.
  3.  
  4. rem This batch file does an errorlevel check for VirusScan.  It will
  5. rem not install the product unless all checks are passed.  If an
  6. rem error is encounterred during the scan, it will be reported.
  7.  
  8. cls
  9. @echo off
  10. echo.
  11. echo SCANNING your memory and your local drives before INSTALLING
  12. echo.
  13.  
  14. SCAN /ADL /NOBREAK
  15.  
  16. if errorlevel 100 goto error100
  17. if errorlevel 19 goto error19
  18. if errorlevel 18 goto error18
  19. if errorlevel 17 goto error17
  20. if errorlevel 16 goto error16
  21. if errorlevel 15 goto error15
  22. if errorlevel 14 goto error14
  23. if errorlevel 13 goto error13
  24. if errorlevel 12 goto error12
  25. if errorlevel 11 goto error11
  26. if errorlevel 10 goto error10
  27. if errorlevel 9 goto error9
  28. if errorlevel 8 goto error8
  29. if errorlevel 7 goto error7
  30. if errorlevel 6 goto error6
  31. if errorlevel 5 goto error5
  32. if errorlevel 4 goto error4
  33. if errorlevel 3 goto error3
  34. if errorlevel 2 goto error2
  35. if errorlevel 1 goto error1
  36. if errorlevel 0 goto install
  37.  
  38. echo.
  39. echo An error occurred during installation.  Please contact
  40. echo McAfee Associates Technical Support for assistance.
  41. goto end
  42.  
  43. :install
  44. call inst
  45. echo.
  46. echo              ***  ***  Installation Successful  ***  ***
  47. goto end
  48.  
  49. :error100
  50. echo.
  51. echo ***  WARNING  ***                 ***  OPERATING SYSTEM ERROR  ***
  52. echo ***  ERROR # 100
  53. echo.
  54. echo Operating system error; Scan adds 100 to the original error number.
  55. echo Please contact McAfee Associates Technical Support for assistance.
  56. pause
  57. goto end
  58.  
  59. :error19
  60. echo.
  61. echo ***  WARNING  ***                               ***  RESERVED  ***
  62. echo ***  ERROR # 19
  63. echo.
  64. echo Please contact McAfee Associates Technical Support for assistance.
  65. pause
  66. goto end
  67.  
  68. :error18
  69. echo.
  70. echo ***  WARNING  ***                             ***  FILE ERROR  ***
  71. echo ***  ERROR # 18
  72. echo.
  73. echo A validated file has been modified (/CF or /CV options).
  74. echo Please refer to your documentation or contact McAfee Associates
  75. echo Technical Support for assistance.
  76. pause
  77. goto end
  78.  
  79. :error17
  80. echo.
  81. echo ***  WARNING  ***                          ***  COMMAND ERROR  ***
  82. echo *** ERROR # 17
  83. echo.
  84. echo No drive, directory or file was specified; nothing to scan.
  85. echo Please refer to your documentation or contact McAfee Associates
  86. echo Technical Support for assistance.
  87. pause
  88. goto end
  89.  
  90. :error16
  91. echo.
  92. echo ***  WARNING  ***                           ***  ACCESS ERROR  ***
  93. echo ***  ERROR # 16
  94. echo.
  95. echo An error occurred while accessing a specified drive or file.
  96. echo Please refer to your documentation or contact McAfee Associates
  97. echo Technical Support for assistance.
  98. pause
  99. goto end
  100.  
  101. :error15
  102. echo.
  103. echo ***  WARNING  ***                      ***  SELF-CHECK FAILED  ***
  104. echo ***  ERROR # 15
  105. echo.
  106. echo VirusScan self-check failed.  It may be infected or damaged.
  107. echo Please refer to your documentation or contact McAfee Associates
  108. echo Technical Support for assistance.
  109. pause
  110. goto end
  111.  
  112. :error14
  113. echo.
  114. echo ***  WARNING  ***                        ***  DATA FILE ERROR  ***
  115. echo ***  ERROR # 14
  116. echo.
  117. echo The SCAN.DAT file is out of date; upgrade VirusScan data files.
  118. echo Please refer to your documentation or contact McAfee Associates
  119. echo Technical Support for assistance.
  120. pause
  121. goto end
  122.  
  123. :error13
  124. echo.
  125. echo ***  WARNING  ***                            ***  VIRUS FOUND  ***
  126. echo ***  ERROR # 13
  127. echo.
  128. echo One or more viruses was found in the master boot record, boot
  129. echo sector, or file(s).
  130. echo Please refer to your documentation or contact McAfee Associates
  131. echo Technical Support for assistance.
  132. pause
  133. goto end
  134.  
  135. :error12
  136. echo.
  137. echo ***  WARNING  ***                            ***  VIRUS FOUND  ***
  138. echo ***  ERROR # 12
  139. echo.
  140. echo An error occurred while attempting to remove a virus, such as no
  141. echo CLEAN.DAT file found, or VirusScan was unable to remove the virus.
  142. echo Please refer to your documentation or contact McAfee Associates
  143. echo Technical Support for assistance.
  144. pause
  145. goto end
  146.  
  147. :error11
  148. echo.
  149. echo ***  WARNING  ***                           *** PROGRAM ERROR  *** 
  150. echo *** ERROR # 11
  151. echo.
  152. echo An internal program communication error occurred.
  153. echo Please refer to your documentation or contact McAfee Associates
  154. echo Technical Support for assistance.
  155. pause
  156. goto end
  157.  
  158. :error10
  159. echo.
  160. echo ***  WARNING  ***                            ***  VIRUS FOUND  ***
  161. echo ***  ERROR # 10
  162. echo.
  163. echo A virus was found in memory.  You must clean the virus from your
  164. echo system before installing.
  165. echo Please refer to your documentation or contact McAfee Associates
  166. echo Technical Support for assistance.
  167. pause
  168. goto end
  169.  
  170. :error9
  171. echo.
  172. echo ***  WARNING  ***                           ***  OPTION ERROR  ***                        
  173. echo ***  ERROR # 9
  174. echo.
  175. echo Incompatible or unrecognized option(s) or option arguments(s) were
  176. echo specified in the command line.
  177. echo Please refer to your documentation or contact McAfee Associates
  178. echo Technical Support for assistance.
  179. pause
  180. goto end
  181.  
  182. :error8
  183. echo.
  184. echo ***  WARNING  ***                     ***  MISSING FILE ERROR  ***
  185. echo ***  ERROR # 8
  186. echo.
  187. echo A file required to run VirusScan, such as SCAN.DAT, is missing.
  188. echo Please refer to your documentation or contact McAfee Associates
  189. echo Technical Support for assistance.
  190. pause
  191. goto end
  192.  
  193. :error7
  194. echo.
  195. echo ***  WARNING  ***                     ***  MESSAGE FILE ERROR  ***
  196. echo ***  ERROR # 7
  197. echo.
  198. echo An error occurred in accessing an internatinal message file 
  199. echo (MCAFEE.MSG).
  200. echo Please refer to your documentation or contact McAfee Associates
  201. echo Technical Support for assistance.
  202. pause
  203. goto end
  204.  
  205. :error6
  206. echo.
  207. echo ***  WARNING  ***                          ***  PROGRAM ERROR  ***
  208. echo *** ERROR # 6
  209. echo.
  210. echo An internal program system error occurred.
  211. echo Please refer to your documentation or contact McAfee Associates
  212. echo Technical Support for assistance.
  213. pause
  214. goto end
  215.  
  216. :error5
  217. echo.
  218. echo ***  WARNING  ***              ***  INSUFFICIENT MEMORY ERROR  ***
  219. echo ***  ERROR # 5
  220. echo.
  221. echo Insufficient memory to load program or complete operation.
  222. echo Please refer to your documentation or contact McAfee Associates
  223. echo Technical Support for assistance.
  224. pause
  225. goto end
  226.  
  227. :error4
  228. echo.
  229. echo ***  WARNING  ***                     ***  DAMAGED FILE ERROR  ***
  230. echo *** ERROR # 4
  231. echo.
  232. echo An error occurred while accessing the file created with the /AF
  233. echo option.  The file has been damaged.
  234. echo Please refer to your documentation or contact McAfee Associates
  235. echo Technical Support for assistance.
  236. pause
  237. goto end
  238.  
  239. :error3
  240. echo.
  241. echo ***  WARNING  ***                      ***  DISK ACCESS ERROR  ***
  242. echo *** ERROR # 3
  243. echo.
  244. echo An error occurred while accessing a disk (reading or writing).
  245. echo Please refer to your documentation or contact McAfee Associates
  246. echo Technical Support for assistance.
  247. pause
  248. goto end
  249.  
  250. :error2
  251. echo.
  252. echo ***  WARNING  ***                     ***  CORRUPT FILE ERROR  ***
  253. echo ***  ERROR # 2
  254. echo.
  255. echo A VirusScan database (*.DAT) file is corrupted.
  256. echo Please refer to your documentation or contact McAfee Associates
  257. echo Technical Support for assistance.
  258. pause
  259. goto end
  260.  
  261. :error1
  262. echo.
  263. echo ***  WARNING  ***                      ***  FILE ACCESS ERROR  ***
  264. echo ***  ERROR # 1
  265. echo.
  266. echo An error occurred while accessing a file (reading or writing).
  267. echo Please refer to your documentation or contact McAfee Associates
  268. echo Technical Support for assistance.
  269. pause
  270.  
  271. :end
  272.  
  273.