If you want to distribute the printer driver to a lot of computers on your enterprise network this section will give you some ideas on how to do that.
The problems we want to address in a network rollout are the following:
- Make sure that all computers have the program installed.
- Make sure that all computers have the latest version.
- Doing the above without having to run the setup program every time a user logs on.
- Automatic distribution of Ghostscript as well as the printer driver.
To solve these problems we have developed the batch file shown here:
@SET Destination=%ProgramFiles%\7-PDF\PDF Writer
IF NOT EXIST "%VersionFile%" GOTO INSTALL
@ECHO Install Program
"%SetupFileName%" /sp /silent /norestart /nocancel
IF ERRORLEVEL==1 GOTO INSTALLERROR
@ECHO Remove old version files
@ECHO Create Version file
@ECHO %USERNAME% > "%VersionFile%"
@ECHO Program is up to date
@ECHO Installation failed
We name this batch file DISTRIB.BAT. If you place this batch file in a folder together with the setup program the installed version can be checked every time you run the batch file.
If the version does not match the one set in the VersionName variable the setup program is started. Change the settings in the beginning of the batch file to match your environment. You can include the Ghostscript distribution folder GS together with this if you want to distribute Ghostscript with the batch file.