Network Distribution
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.
This part of the documentation assumes that you have read about the
unattended installation
and distributing Ghostscript.
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.
@ECHO OFF
@SET SetupFileName=BIOPDFSetup(3.0.0.25).exe
@SET VersionName=version3
@SET Destination=%ProgramFiles%\BIOPDF\PDF Writer
@SET VersionFile=%Destination%\%VersionName%.version
IF NOT EXIST "%VersionFile%" GOTO INSTALL
GOTO NOINSTALL
:INSTALL
@ECHO Install Program
"%SetupFileName%" /sp /silent /norestart /nocancel
IF ERRORLEVEL==1 GOTO INSTALLERROR
@ECHO Remove old version files
DEL "%Destination%\*.version"
@ECHO Create Version file
@ECHO %USERNAME% > "%VersionFile%"
@GOTO END
:NOINSTALL
@ECHO Program is up to date
GOTO END
:INSTALLERROR
@ECHO Installation failed
:END
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.
|