home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l408 / 2.img / INSTALL.BAT < prev    next >
Encoding:
DOS Batch File  |  1992-11-24  |  2.9 KB  |  108 lines

  1. echo off
  2. cls
  3. echo                  MicroHelp VBTools Installation
  4. echo.
  5. echo.
  6. if "%1" == "" goto NoPath
  7. echo Ready to install. This product requires approximately 4.3MB. 
  8. echo Press ^Break to abort or
  9. pause
  10. if "%2"=="" goto NoDel
  11. if "%2"=="/d" goto DoDel
  12. if "%2"=="/D" goto DoDel
  13. echo Invalid switch used "%2"
  14. goto End
  15. :DoDel
  16. echo.
  17. echo The install program is about to delete the contents of the
  18. echo %1 directory and all directories beneath it.
  19. echo ^Break to stop process, or
  20. pause
  21. echo.
  22. echo Deleting directory....
  23. killdir %1
  24. :NoDel
  25. echo.
  26. echo Creating default directory
  27. md %1
  28. echo Creating Subdirectories
  29. echo      EXAMPLES...
  30. md %1\EXAMPLES
  31. echo.
  32. echo Unpacking files:
  33. if exist main.exe goto disk1first
  34. :disk2first
  35. echo      Examples directory...
  36. examples %1
  37. vbthelp %1
  38. if errorlevel 1 goto error
  39. :disk1again
  40. echo 
  41. echo Please insert the other diskette and
  42. pause
  43. if exist main.exe goto fdisk1
  44. goto disk1again
  45. :fdisk1
  46. echo      Default directory...
  47. main %1
  48. if errorlevel 1 goto error
  49. goto done
  50. :disk1first
  51. echo      Default directory...
  52. main %1
  53. if errorlevel 1 goto error
  54. :disk2again
  55. echo 
  56. echo Please insert the other diskette and
  57. pause
  58. if exist examples.exe goto fdisk2
  59. goto disk2again
  60. :fdisk2
  61. echo      Examples directory...
  62. examples %1
  63. echo       Main directory...
  64. vbthelp %1
  65. if errorlevel 1 goto error
  66. :done
  67. echo.
  68. echo Installation of VBTools is now complete.
  69. echo.
  70. echo Don't forget to either add %1 to your PATH,
  71. echo or to copy the DLLs to a directory that is in your path.
  72. echo.
  73. echo If you want the online help to be active, be sure to copy 
  74. echo VBT200.HLP to your Windows directory.  If you are using Windows
  75. echo version 3.0, you must use the WINHELP.EXE for Windows 3.1 that
  76. echo is included on disk 2.  Please see the READ.ME file for instructions
  77. echo on how to install WINHELP.
  78. echo.
  79. goto end
  80. :error
  81. echo                            **** E R R O R ****
  82. echo.
  83. echo     An error occurred during the installation. Most likely, your
  84. echo     hard disk is full. Please correct the problem and run the INSTALL
  85. echo     batch file again.
  86. echo.
  87. goto end
  88. :NoPath
  89. echo.
  90. echo     Insert the distribution diskette in drive A: and close the
  91. echo     latch. Next, log onto drive A: by typing 'A:' followed by [Enter].
  92. echo.
  93. echo.
  94. echo     Syntax:   INSTALL Drive:\Path [/d]
  95. echo.
  96. echo     Where 'Drive:\Path' is the drive letter and the path of the hard disk
  97. echo     drive and directory where you wish to install this product.
  98. echo.
  99. echo     Using the optional /d switch causes the contents of the specified
  100. echo     directory, and all directories beneath it, to be removed before
  101. echo     installation. This is useful when you are re-installing the
  102. echo     product and you don't want to be prompted each time the installation
  103. echo     detects an existing file.
  104. echo.
  105. echo     For example:     INSTALL C:\VBTOOLS /d
  106. echo.
  107. :end
  108.