home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 26 / CD_ASCQ_26_1295.iso / vrac / dkcare40.zip / INSTALL.BAT < prev   
DOS Batch File  |  1995-08-29  |  4KB  |  89 lines

  1. @echo off
  2. cls
  3. If "%1" == "" goto Syntax
  4. echo.
  5. echo              ╔═══════════════════════════════════════════════════════╗
  6. echo              ║ WELCOME TO THE INSTALLATION PROGRAM FOR DiskCare v4.0 ║
  7. echo              ╚═══════════════════════════════════════════════════════╝
  8. echo.
  9. echo DiskCare v4.0 will be installed to %1
  10. echo.
  11. choice /cyn "Do you wish to continue "
  12. If errorlevel=2 goto alt
  13. If errorlevel=1 goto continue
  14.  
  15. :continue
  16. echo.
  17. echo Making the %1 directory.
  18. md %1
  19. echo.
  20. echo Unpacking to %1
  21. disk -d %1
  22. echo.
  23. echo.
  24.  
  25. choice /c:yn "Whould you like the Installation Files Deleted "
  26. If errorlevel=2 goto bye
  27. If errorlevel=1 goto next
  28.  
  29. :next
  30. echo.
  31. echo Deleting Installation files.
  32. echo.
  33. del disk.exe
  34. del file_id.diz
  35. echo Installation Complete. Type 'DISK' to run.
  36. del install.bat
  37. goto end
  38.  
  39. :alt
  40. cls
  41. echo ╔════════════════════╗
  42. echo ║ ALTERNATE METHOD   ╠═══════════════════════════════════════════════════════╗
  43. echo ╚═╦══════════════════╝                                                       ║
  44. echo   ║                                                                          ║
  45. echo   ║ The alternate method for installation is:                                ║
  46. echo   ║                                                                          ║
  47. echo   ║ 1. Make desired directory.                                               ║
  48. echo   ║ 2. Copy/Move DISK.EXE to that Directory.                                 ║
  49. echo   ║ 3. Type 'DISK'. This will unpack the program.                            ║
  50. echo   ║ 4. Delete DISK.EXE, FILE_ID.DIZ & INSTALL.BAT                            ║
  51. echo   ║ 6. Copy/Move DISK.BAT to one of the Directories in your PATH statement   ║
  52. echo   ╚══════════════════════════════════════════════════════════════════════════╝
  53. echo.
  54. echo Your PATH statement:
  55. echo %path%
  56. echo.
  57. echo DiskCare v4.0 wasn't installed Correctly. Please try again.
  58. goto end
  59.  
  60. :syntax
  61. echo.
  62. echo.
  63. echo ╔════════════════════╗
  64. echo ║ INSTALLATION ERROR ╠═══════════════════════════════════════════════════════╗
  65. echo ╚═╦══════════════════╝                                                       ║
  66. echo   ║                                                                          ║
  67. echo   ║  The proper syntax to install DiskCare v4.0 is:                          ║
  68. echo   ║                                                                          ║
  69. echo   ║          INSTALL [DESTINATION]                                           ║
  70. echo   ║                                                                          ║
  71. echo   ║  DESTINATION is the complete path of the directory you wish to install   ║
  72. echo   ║              DiskCare v4.0 to.                                           ║
  73. echo   ║                                                                          ║
  74. echo   ║  EXAMPLE:                                                                ║
  75. echo   ║                                                                          ║
  76. echo   ║        Install C:\DISKCARE                                               ║
  77. echo   ║                                                                          ║
  78. echo   ╚══════════════════════════════════════════════════════════════════════════╝                                                                    
  79. echo.                                                                             
  80. echo DiskCare v4.0 wasn't installed Correctly. Please try again.                  
  81. goto end
  82.  
  83. :bye
  84. cd %1
  85. echo INSTALLATION completed, type 'disk40' to run.
  86.  
  87. :end
  88. echo.
  89.