home *** CD-ROM | disk | FTP | other *** search
- echo off
- echo Installs/De-Installs Freelance Graphics Summagraphics SummaSketch device driver
- if he%3lp==help goto help
- if not exist fltool.com goto err1util
- fltool fullpath %3
- if errorlevel 1 goto help
- rem
- rem Check for validity of input arguments
- rem
- if %1 == 1201 goto port
- if %1 == 961 goto port
- if %1 == 0 goto deins
- goto help
- :port
- if %2 == 0 goto help
- if %2 == 1 goto patch
- if %2 == 2 goto patch
- if %2 == 3 goto patch
- if %2 == 4 goto patch
- goto help
- :deins
- if %2 == 0 goto patch
- goto help
- :patch
- fltool exist %3\fl.com
- if errorlevel 1 goto errdir
- if not exist flpatch.com goto err1util
- if %1 == 1201 flpatch -TABLET 2 %2 %3\fl.com %3\fl.com
- if %1 == 961 flpatch -TABLET 1 %2 %3\fl.com %3\fl.com
- if %1 == 0 flpatch -TABLET 0 %2 %3\fl.com %3\fl.com
- if errorlevel 1 goto error
- rem
- rem Copy tablet module to Freelance Graphics directory
- rem
- fltool exist %3\gcisd.exe
- if errorlevel 1 goto errdir
- if %1 == 0 goto rmfile
- copy gcitab.exe %3\tablet.exe
- fltool exist %3\tablet.exe
- if errorlevel 1 goto error
- goto end
- :rmfile
- fltool exist %3\tablet.exe
- if errorlevel 1 goto enderr
- del %3\tablet.exe
- goto end
- :errdir
- echo *************************************************************
- echo * *
- echo * Freelance Graphics is not installed in the directory: %3
- echo * *
- echo *************************************************************
- goto help
- :err1util
- echo *************************************************************
- echo * *
- echo * You must install this driver from the default drive.
- echo * If the Utilities disk is in drive A:, type:
- echo * A: Enter
- echo * *
- echo *************************************************************
- goto enderr
- :error
- echo *************************************************************
- echo * *
- echo * Error occurred during installation of tablet driver *
- echo * *
- echo *************************************************************
- goto enderr
- :help
- echo *************************************************************
- echo *
- echo * To use this batch file, enter "summatab" followed by the
- echo * tablet identifier, the number of the communications port
- echo * to which the tablet is attached, and the directory where
- echo * Freelance Graphics is installed.
- echo *
- echo * For example,
- echo * To install:
- echo * summatab 961 2 c:\fl
- echo * To deinstall:
- echo * summatab 0 0 c:\fl
- echo *
- echo * Please check your Freelance Graphics manual for further information.
- echo *
- echo *************************************************************
- goto :enderr
- :end
- if %2 == 0 echo Summagraphics SummaSketch de-installation successful.
- if %2 == 1 echo Summagraphics SummaSketch installation successful.
- if %2 == 2 echo Summagraphics SummaSketch installation successful.
- :enderr
- echo on