home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1995 December / SOFM_Dec1995.bin / pc / dos / dtp / pcproof / install.bat < prev    next >
DOS Batch File  |  1995-10-31  |  4KB  |  95 lines

  1. @ECHO OFF
  2. ECHO PC-Proof hard disk installation
  3. ECHO             PC-PROOF HARD DISK INSTALLATION INSTRUCTIONS
  4. ECHO Make a new directory for PC-Proof and switch to it.  Example:
  5. ECHO MKDIR PCPROOF
  6. ECHO CD PCPROOF
  7. ECHO Then type the command A:INSTALL if you are installing from drive A: or
  8. ECHO B:INSTALL B: if you are installing from drive B:.
  9. ECHO You will need 900K bytes free on your hard disk.
  10. ECHO ╔═══════════════════════════════════════════════════════╗
  11. ECHO ║ DID YOU MAKE A SUBDIRECTORY AND MADE IT YOUR DEFAULT? ║
  12. ECHO ╚═══════════════════════════════════════════════════════╝
  13. ECHO Press Control-C to stop installation.
  14. pause
  15. IF exist pc-proof.exe goto ndrive
  16. IF exist pcproof1.exe goto ndrive
  17. IF exist pcproof2.exe goto ndrive
  18. IF %1. == . goto NDEFDRV
  19. If not exist %1\nul goto NEEDARG
  20. If exist %1pcproof1.exe goto 1OF2
  21. IF exist %1pcproof2.exe goto 2OF2
  22. IF not exist %1pc-proof.exe goto NEEDARG
  23. %1pc-proof /e.
  24. IF not exist pcproof.tut goto ERROR
  25. goto COPYDONE
  26. :1OF2
  27. IF not exist %1pcproof1.exe goto NEEDARG
  28. %1pcproof1 /e.
  29. IF not exist pcproof.tut goto ERROR
  30. IF exist %1pcproof2.exe goto 2OF2
  31. goto NEXTDISK
  32. :2OF2
  33. IF not exist %1pcproof2.exe goto NEEDARG
  34. %1pcproof2 /e.
  35. IF not exist pcproof.dic goto ERROR
  36. goto COPYDONE
  37. :NDEFDRV
  38. If not exist a:\nul goto NEEDARG
  39. If exist a:pcproof1.exe goto N1OF2
  40. IF exist a:pcproof2.exe goto N2OF2
  41. IF not exist a:pc-proof.exe goto NEEDARG
  42. a:pc-proof /e.
  43. IF not exist pcproof.tut goto ERROR
  44. IF exist a:pcproof2.exe goto N2OF2
  45. goto COPYDONE
  46. :N1OF2
  47. IF not exist a:pcproof1.exe goto NEEDARG
  48. a:pcproof1 /e.
  49. IF not exist pcproof.tut goto ERROR
  50. goto NEXTDISK
  51. :N2OF2
  52. IF not exist a:pcproof2.exe goto NEEDARG
  53. a:pcproof2 /e.
  54. IF not exist pcproof.dic goto ERROR
  55. IF not exist pcproof.tut goto ERROR
  56. :COPYDONE
  57. If not errorlevel 0 goto ERROR
  58. more < pcproof.doc
  59. ECHO Installation is complete, type PCPROOF to start the program.
  60. goto done
  61. :ndrive
  62. ECHO You cannot install PC-Proof while your default drive is the same as
  63. ECHO the installation drive.  Please switch to the drive and subdirectory
  64. ECHO you want to install PC-Proof to.
  65. ECHO   ╔═════════════════════════════════════════════════════╗
  66. echo   ║  PC-Proof has not been installed, please try again. ║
  67. ECHO   ╚═════════════════════════════════════════════════════╝
  68. goto DONE
  69. :ERROR
  70. echo One or more of the PC-Proof files failed to copy. Check if there is
  71. echo 900K bytes avaliable on your hard disk.  Also check if the drive
  72. echo is not write protected.  Then, restart this installation.
  73. ECHO   ╔═════════════════════════════════════════════════════╗
  74. echo   ║  PC-Proof has not been installed, please try again. ║
  75. ECHO   ╚═════════════════════════════════════════════════════╝
  76. goto DONE
  77. :NEXTDISK
  78. If not errorlevel 0 goto ERROR
  79. ECHO            Installation of disk 1 is complete.
  80. ECHO        ╔════════════════════════════════════════╗
  81. ECHO        ║  Insert PC-Proof disk 2 and repeat the ║
  82. ECHO        ║  same installation procedure as disk 1.║
  83. ECHO        ╚════════════════════════════════════════╝
  84. goto DONE
  85. :NEEDARG
  86. ECHO The installation disk was not correctly specified.  If you are not
  87. ECHO installing from drive A:, you need to supply the drive letter to
  88. ECHO the INSTALL command.  If you are installing from drive B:, issue the
  89. ECHO command B:INSTALL B: (Make sure to include B: after INSTALL.)
  90. ECHO   ╔═════════════════════════════════════════════════════╗
  91. echo   ║  PC-Proof has not been installed, please try again. ║
  92. ECHO   ╚═════════════════════════════════════════════════════╝
  93. :done
  94.  
  95.