Changes

Jump to: navigation, search

PDFCreator

1,548 bytes added, 13:02, 6 March 2008
Update to version 0.9.5
== PDFCreator 0.9.5 ==
 
[http://sourceforge.net/projects/pdfcreator/ PDFCreator] 0.9.5 is not available as an MSI package.
Customization has to be prepared via a .inf file produced by the installation package with the /SAVEINF="filename.inf" option.
Version 0.9.5 does not upgrade from 0.9.3 so I use a different package id ("pdfcreator" for the old version, "pdfcreator-095" for the new), so that the old version is removed before the new is installed.
 
Note that the uninstall string is "PDFCreator" for both versions, so I added a check on the executable version just to make sure.
 
<source lang="xml">
<package
id="pdfcreator-095"
name="PDFCreator 0.9.5"
revision="1"
reboot="false"
priority="0">
<check type="logical" condition="and">
<check type="uninstall" condition="exists" path="PDFCreator" />
<check type="file" condition="versionequalto" path="%PROGRAMFILES%\PDFCreator\PDFCreator.exe" value="0.9.0.5"/>
</check>
<install cmd='%SOFTWARE%\PDFCreator\PDFCreator-0_9_5_setup.exe /LOADINF="%SOFTWARE%\PDFCreator\PDFCreator-0_9_5_setup.inf" /VERYSILENT /NORESTART /SP-' />
<upgrade cmd='%SOFTWARE%\PDFCreator\PDFCreator-0_9_5_setup.exe /LOADINF="%SOFTWARE%\PDFCreator\PDFCreator-0_9_5_setup.inf" /VERYSILENT /NORESTART /SP-' />
<remove cmd='%PROGRAMFILES%\PDFCreator\unins000.exe /VERYSILENT' />
</package>
</source>
 
 
== PDFCreator 0.9.3 ==
[http://sourceforge.net/projects/pdfcreator/ PDFCreator] 0.9.3 is available as an MSI package. Using the standard MSI install/uninstall seems to work for me.
<presource lang="xml">
<package
id="pdfcreator"
<remove cmd='msiexec /qn /x %SOFTWARE%\pdfcreator\zPDFCreator-0_9_3-AD_DeploymentPackage-WithoutToolbar.msi' />
</package>
</presource>
=== Upgrading to 0.9.3 from an already installed older release (0.8.1 in my case) ===
* [http://www.pdfforge.org/node/675/1673#comment-1673 registry keys are not properly modified by the package]
<presource lang="xml">
<package
id="pdfcreator"
<remove cmd='msiexec /qn /x %SOFTWARE%\pdfcreator\zPDFCreator-0_9_3-AD_DeploymentPackage-WithoutToolbar.msi' />
</package>
</presource>
The reg file is :
Unfortunately, when you install it, it is possible that a normal user will not be able to use this printer - this has to be corrected with <code>rundll printui.dll,PrintUIEntry...</code>. The complete silent installer and uninstaller looks like this:
<source lang="xml">
<package
id="pdfcreator"
<remove cmd='MsiExec.exe /q /x{0001B4FD-9EA3-4D90-A79E-FD14BA3AB01D}' />
</package>
</source>
Note: while I was testing this, I installed and uninstalled PDFCreator 0.9.1 without rebooting the PC. After yet another installation, the installer popped up a window, saying that a restart is necessary. So perhaps if you're upgrading from the older PDFCreator version, a restart after uninstalling that old version might be a good idea.
Use the inf-file for the installer:
<source lang="xml">
<package
id="pdfcreator-0.8.0"
<remove cmd='"%ProgramFiles%\PDFCreator\unins000.exe" /VERYSILENT' />
</package>
</source>
<ul>
== Installing 0.8.0-patch2 ==
Create the inf file with the new version in the same way as above. Create the package:
<presource lang="xml">
<package
id="pdfcreator-0.8.0-patch2"
<remove cmd='"%ProgramFiles%\PDFCreator\unins000.exe" /VERYSILENT' />
</package>
</presource>
Main difference: I've set down the priority, so 0.8.0 is always installed before patch2 and I've also removed the install check. But it doesn't stop here. Next, create a profile:
<presource lang="xml">
<profile id="pdfcreator">
<package package-id="pdfcreator-0.8.0" />
<package package-id="pdfcreator-0.8.0-patch2" />
</profile>
</presource>
Now, whenever you want to include pdfcreator, you can just include the "software profile" in any other profiles. Having both versions in a profile and using the priority settings ensures that 0.8.0 is always installed before patch2.
[[category:Silent Installers]]
152
edits

Navigation menu