I have created the following bat file that is called from my login script:
Code: Select all
ECHO ON
SET SetupPath=\\gmtv10a\netlogon\pdf\
SET SetupFileName=PDFPrinter.exe
SET VersionName=version1
SET Destination=%ProgramFiles%\BullZip\PDF Printer
SET VersionFile=%Destination%\%VersionName%.version
IF NOT EXIST "%VersionFile%" GOTO INSTALL
GOTO NOINSTALL
:INSTALL
@ECHO Install Program
%SetupPath%%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
Even though I have done this is still says that GS is not intstalled and I need to install it.
Anyone have any ideas