home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / vrac / diskse24.zip / DS2INST.BAT < prev    next >
DOS Batch File  |  1993-09-02  |  4KB  |  133 lines

  1. @echo off
  2. echo off
  3. echo.
  4. rem Invocation syntax: DS2INST [drive DS files are on] [drive to install]
  5. rem     e.g. DS2INST a d (do not include colons) if DS2INST is invoked 
  6. rem          without any parameters, it will assume from a & to c
  7. set d1=%1
  8. set d2=%2
  9. if t%d1%==t set d1=a
  10. if t%d2%==t set d2=c
  11. echo.
  12. echo Use this installation file only if DISKSECURE II is on a floppy disk 
  13. echo (A/B) and you are installing to a hard disk.
  14. echo Otherwise install manually (see documentation)
  15. echo.
  16. echo DISKSECURE II will be installed from drive %d1% to drive %d2%
  17. echo press control-C to exit if incorrect, (enter) to continue.
  18. pause
  19. echo.
  20. %d2%:
  21. %d1%:chk512
  22. if not errorlevel 1 goto secok
  23. echo.
  24. echo Invalid disk sector size (over 512 bytes) - cannot install DiskSecure II
  25. goto endit
  26. :secok
  27. %d1%:dos32.com
  28. if not errorlevel 1 goto lowdos
  29. echo.
  30. %d1%:chkint13.com
  31. if errorlevel 1 goto intok
  32. echo.
  33. echo Interrupt 13 vector report invalid. If QEMM386 "stealth" not in effect,
  34. echo you may have a virus already. In any event, DiskSec II cannot initialize.
  35. echo If no virus is found, you may have to boot from a "bare floppy" to install.
  36. goto endit
  37. :intok
  38. echo.
  39. echo Interrupt 13 validated.
  40. echo.
  41. cd \
  42. md \ds2
  43. cd \ds2
  44. %d1%:
  45. echo.
  46. echo Copying DS2 files to %d2%:\ds2
  47. copy *.* %d2%: >nul
  48. %d2%:
  49. echo.
  50. echo Do I have permission to add DISKSECURE II verification to your
  51. echo AUTOEXEC.BAT file ? (y/n)
  52. ask
  53. if errorlevel 89 if not errorlevel 90 goto addbat
  54. goto next
  55. :addbat
  56. if not exist c:\autoexec.bat goto newbat
  57. echo.
  58. echo The original AUTOEXEC.BAT is being saved as %d2%:\ds2\autoexec.ds
  59. copy c:\autoexec.bat autoexec.ds >nul
  60. copy ds2chk.exe c:\ >nul
  61. copy ds2.b+autoexec.ds c:\autoexec.bat >nul
  62. goto dsconfig
  63. :newbat 
  64. copy ds2.b c:\autoexec.bat >nul
  65. goto dsconfig
  66. :next
  67. echo.
  68. echo It is suggested that the command lines in file DS.B be added to your
  69. echo startup procedure to verify proper operation of DISKSECURE.
  70. :dsconfig
  71. echo.
  72. echo This PC is currently running DOS 3.2 or above. If this is correct for
  73. echo normal operation then do I have permission to add DISKSECURE II 
  74. echo DS2MOVE.SYS to your CONFIG.SYS file ? 
  75. echo This will make maximum available memory to DOS. (y/n)
  76. ask
  77. if errorlevel 89 if not errorlevel 90 goto addcon
  78. goto next2
  79. :addcon
  80. copy ds2move.sys c:\ >nul
  81. copy c:\config.sys config.ds >nul
  82. echo.
  83. qemmst.com
  84. if not errorlevel 7 goto cok2
  85. echo.
  86. echo If QEMM DOSDATA.SYS and DOS_UP.SYS are present in CONFIG.SYS
  87. echo DS2MOVE.SYS should be installed only AFTER these drivers.
  88. echo DS2INST will place DS2MOVE.SYS LAST in CONFIG.SYS. To install
  89. echo first, you will have to install the device driver manually.
  90. echo.
  91. echo Do you wish to continue (y) or skip the update of CONFIG.SYS (n) ?
  92. ask
  93. if errorlevel 89 if not errorlevel 90 goto cok1
  94. goto next2
  95. :cok1
  96. if not exist c:\config.sys goto newsys
  97. echo The original CONFIG.SYS is being saved as %d2%:\ds2\config.ds
  98. copy config.ds+cr.lf+ds2.c c:\config.sys >nul
  99. goto dsin
  100. :cok2
  101. echo.
  102. echo The original CONFIG.SYS is being saved as %d2%:\ds2\config.ds
  103. copy ds2.c+config.ds c:\config.sys >nul
  104. goto dsin
  105. :newsys
  106. copy ds2.c c:\config.sys >nul
  107. goto dsin
  108. :next2    
  109. echo.
  110. echo It is suggested that the command line in file DS2.C be added to your
  111. echo CONFIG.SYS file for minimal memory use.
  112. :dsin
  113. disksec2
  114. goto endit
  115. :lowdos
  116. echo.
  117. echo The DiskSecure files have been copied to your hard disk however you
  118. echo are not currently running DOS 3.2 or above. While the DiskSecure
  119. echo protection does not require this, the instalation procedure does
  120. echo to be able to properly set up the automatic recovery feature.
  121. echo.
  122. echo Consequently, you will have to boot the machine with DOS 3.2 or above
  123. echo and run DiskSec2.exe manually or rerun this .BAT file to fully install
  124. echo the product.
  125. :endit
  126. del *.com
  127. del ds2inst.bat
  128. del ds2.c
  129. del ds2.b
  130. del cr.lf
  131. set d1=
  132. set d2=
  133. cd \