FreePDF
Silent installer for FreePDF.
FeePDF_XP is a printer device emulation and creates PDF-files (single or so called multi-doc files) from any application, that can print. It depends on ghostscript (Aladdin or GNU, latest releases). The software is available here. On this site you will also find discussions on FreePDF_XP (troubleshooting etc.).
Contents
Version 4.06
If you install FreePDF 4.06 or greater on Windows 7 via WPKG, you won't see any installed FreePDF printer. The cause is that Windows 7 only accepts digitally signed printer drivers, the one that ships with FreePDF is not signed. FreePDF unattended and Windows 7 shows how to add a Post Script driver that ships with Windows 7 and has a valid signature.
<package id="freepdf" name="FreePDF" revision="9" reboot="false" priority="50">
<check type="host" condition="architecture" value="x86" />
<check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\FreePDF_XP\freepdf.exe" value="4" />
<depends package-id='ghostscript'/>
<install cmd='cmd /C""%SOFTWARE%\freepdf406.bat""'/>
<!-- Windows 7 accepts only digitally signed printer drivers, so let's install one out-of-the-box -->
<install cmd='cmd /C""%SYSTEMROOT%\rundll32.exe" printui.dll,PrintUIEntry /if /b "FreePDF" /r "freepdfxp1:" /m "HP Color LaserJet 2800 Series PS" /z /f "%windir%\inf\ntprint.inf""'/>
<remove cmd='"%PROGRAMFILES%\FreePDF_XP\fpsetup.exe" /r /q'/>
</package>
The batch-File contains:
rmdir %APPDATA%\FreePDF /s /q
cmd /C""%SOFTWARE%\freepdf406.EXE" /q /c:"fpsetup.exe /q""
If you don't remove the mentioned directory, re-installation isn't possible: Error creating psDir and setting
Version 3.26
Installation directly from downloaded archive
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="FreePDF" name="FreePDF" revision="1" reboot="false" priority="50">
<check type="file" condition="versionequalto" path="%PROGRAMFILES(X86)%\FreePDF_XP\freepdf.exe" value="3.20.0.12" />
<depends package-id='GhostScript'/>
<install cmd='cmd /C""%SOFTWARE%\Packages\FreePDF\FreePDFXP3.26.EXE" /q /c:"fpsetup.exe /q""'/>
<remove cmd='"%PROGRAMFILES(X86)%\FreePDF_XP\uninst.exe" /Q /R'/>
</package>
</packages>
Installation by batch-file
<packages>
<package id="freepdfxp" name="FreePDF XP 3.26" revision="326" reboot="false" priority="1" >
<depends package-id="gplghostscript" />
<check type="file" condition="sizeequals" path="%PROGRAMFILES%\FreePDF_XP\FreePDF.exe" value="761344" />
<install cmd='cmd /C "%SOFTWARE%\wpkg\packages\fpsetup.bat"' />
<upgrade cmd='"%SOFTWARE%\wpkg\packages\fpsetup.bat"' />
<remove cmd='"%PROGRAMFILES%\FreePDF_XP\fpsetup.exe" /q /r' />
<!-- after uninstall file and directory remain -->
<remove cmd='cmd /C del /y "%PROGRAMFILES%\FreePDF_XP\fpsetup.exe"' />
<remove cmd='cmd /C rd /y "%PROGRAMFILES%\FreePDF_XP"' />
</package>
The file fpsetup.bat consists of only two lines:
set fpsetup=1 %SOFTWARE%\pdf\FreePDFXP3.26.exe