echo off
cls
IF NOT EXIST COMCHECK.EXE GOTO WRONGDSK
IF NOT EXIST PKUNZIP.EXE  GOTO WRONGDSK
goto START
:SCRERROR
:WRONGDSK
cls
echo "
echo " The current drive/directory must be the mouse disk.
echo "        
echo " Example:
echo " -------
echo :
echo " To install your mouse software from the drive A, type
echo "       
echo " A:       [Ù]
echo " install  [Ù]
echo "
echo "
pause
goto THEEND
:START
cls
echo ÿ
echo ÿ
echo ÿ      Running Mouse Installation Program
echo ÿ
mouse nb > nul
if errorlevel 1 goto MSEOTHER
if errorlevel 0 goto DOMWINST
:MSEOTHER
cls
mouse nb ser > nul
if errorlevel 4 goto PS2ERR
if errorlevel 2 goto SERIAL2
if errorlevel 1 goto BUSERR
:DOMWINST
CLICK > nul
FMINST >nul
cls
echo ÿ
echo ÿ
echo ÿ        End of Mouse Installation.
echo ÿ
echo          Please re-boot your machine now.
echo ÿ
echo ÿ
goto THEEND
:SERIAL2
cls
a:mouse ser nb 2 >nul
if errorlevel 1 goto SERERR
goto THEEND
:BUSERR
cls
echo ÿ
echo ÿ
echo ÿ
echo ÿ
echo ÿ        Your Bus Version mouse is not responding...
echo ÿ
echo ÿ        Please re-check the mouse cable connection
echo ÿ        and Bus board installation (see Chapter 1, How
echo ÿ        To Install Your Mouse, in the "Getting Started"
echo ÿ        booklet).
echo ÿ
echo ÿ
echo ÿ
echo ÿ
goto THEEND
:PS2ERR
cls
echo ÿ
echo ÿ
echo ÿ
echo ÿ
echo ÿ        Your Serial-PS/2 mouse is not responding...
echo ÿ
echo ÿ        Please re-check the mouse cable connection.
echo ÿ        (see Chapter 1, How To Install Your Mouse,
echo ÿ        in the "Getting Started" booklet).
echo ÿ
echo ÿ
echo ÿ
echo ÿ
goto THEEND
:SERERR
a:comcheck
echo ÿ
echo ÿ
pause
:THEEND
echo on
