home *** CD-ROM | disk | FTP | other *** search
- echo off
- cls
- echo MicroHelp VBTools Installation
- echo.
- echo.
- if "%1" == "" goto NoPath
- echo Ready to install. This product requires approximately 4.3MB.
- echo Press ^Break to abort or
- pause
- if "%2"=="" goto NoDel
- if "%2"=="/d" goto DoDel
- if "%2"=="/D" goto DoDel
- echo Invalid switch used "%2"
- goto End
- :DoDel
- echo.
- echo The install program is about to delete the contents of the
- echo %1 directory and all directories beneath it.
- echo ^Break to stop process, or
- pause
- echo.
- echo Deleting directory....
- killdir %1
- :NoDel
- echo.
- echo Creating default directory
- md %1
- echo Creating Subdirectories
- echo EXAMPLES...
- md %1\EXAMPLES
- echo.
- echo Unpacking files:
- if exist main.exe goto disk1first
- :disk2first
- echo Examples directory...
- examples %1
- vbthelp %1
- if errorlevel 1 goto error
- :disk1again
- echo
- echo Please insert the other diskette and
- pause
- if exist main.exe goto fdisk1
- goto disk1again
- :fdisk1
- echo Default directory...
- main %1
- if errorlevel 1 goto error
- goto done
- :disk1first
- echo Default directory...
- main %1
- if errorlevel 1 goto error
- :disk2again
- echo
- echo Please insert the other diskette and
- pause
- if exist examples.exe goto fdisk2
- goto disk2again
- :fdisk2
- echo Examples directory...
- examples %1
- echo Main directory...
- vbthelp %1
- if errorlevel 1 goto error
- :done
- echo.
- echo Installation of VBTools is now complete.
- echo.
- echo Don't forget to either add %1 to your PATH,
- echo or to copy the DLLs to a directory that is in your path.
- echo.
- echo If you want the online help to be active, be sure to copy
- echo VBT200.HLP to your Windows directory. If you are using Windows
- echo version 3.0, you must use the WINHELP.EXE for Windows 3.1 that
- echo is included on disk 2. Please see the READ.ME file for instructions
- echo on how to install WINHELP.
- echo.
- goto end
- :error
- echo **** E R R O R ****
- echo.
- echo An error occurred during the installation. Most likely, your
- echo hard disk is full. Please correct the problem and run the INSTALL
- echo batch file again.
- echo.
- goto end
- :NoPath
- echo.
- echo Insert the distribution diskette in drive A: and close the
- echo latch. Next, log onto drive A: by typing 'A:' followed by [Enter].
- echo.
- echo.
- echo Syntax: INSTALL Drive:\Path [/d]
- echo.
- echo Where 'Drive:\Path' is the drive letter and the path of the hard disk
- echo drive and directory where you wish to install this product.
- echo.
- echo Using the optional /d switch causes the contents of the specified
- echo directory, and all directories beneath it, to be removed before
- echo installation. This is useful when you are re-installing the
- echo product and you don't want to be prompted each time the installation
- echo detects an existing file.
- echo.
- echo For example: INSTALL C:\VBTOOLS /d
- echo.
- :end