Changes

PDFCreator

2,827 bytes added, 16:27, 22 April 2009
Updated to PDFCreator 0.9.8, inclunding a .REG file in order to control the Auto Update mechanism.
== PDFCreator 0.9.8 ==
 
 
[http://sourceforge.net/projects/pdfcreator/ PDFCreator] 0.9.8 is not available as an MSI package. Customization has to be prepared via commandline arguments to the installer; this allows for example the installation without toolbar and desktop icon.
 
Version 0.9.8 does not upgrade from 0.9.7 (it complains about the package being already installed) so I use a different package id ("pdfcreator-097" for the old version, "pdfcreator-098" 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 number just to make sure.
 
Note also the call to unins000.exe before install/upgrade. This should solve the "package already installed" problem mentioned above. This also serves to remove any previous versions that may have been manually installed.
 
Install/Upgrade also merges in the registry tree HKEY_LOCAL_MACHINE a registry file named "PDFCreator-0_9_8-ZeroUpdateInterval.reg" in order to disable the "auto update check" mechanism. The registry file simply contains the following:
 
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\PDFCreator\Program]
"UpdateInterval"="0"
 
The following values can be forced for the UpdateInterval key:
 
UpdateInterval=0 means "Never"
UpdateInterval=1 means "Once a day"
UpdateInterval=2 means "Once a week"
UpdateInterval=3 means "Once a month"
 
 
<source lang="xml">
<package
id="pdfcreator-098"
name="PDFCreator 0.9.8"
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.8"/>
</check>
<install cmd='%PROGRAMFILES%\PDFCreator\unins000.exe /VERYSILENT' >
<exit code="any" reboot="false" /> <!-- 0 = previous installation successfully removed.
undefined = no previous installation -->
</install>
<install cmd='%SOFTWARE%\PDFCreator\PDFCreator-0_9_8_setup.exe /silent /norestart /components=\"!toolbar\" /tasks=\"!desktop_icon\"" /f"' />
<install cmd='regedit /s %SOFTWARE%\PDFCreator\PDFCreator-0_9_8-ZeroUpdateInterval.reg' />
<upgrade cmd='%PROGRAMFILES%\PDFCreator\unins000.exe /VERYSILENT' />
<upgrade cmd='%SOFTWARE%\PDFCreator\PDFCreator-0_9_8_setup.exe /silent /norestart /components=\"!toolbar\" /tasks=\"!desktop_icon\"" /f"' />
<upgrade cmd='regedit /s %SOFTWARE%\PDFCreator\PDFCreator-0_9_8-ZeroUpdateInterval.reg' />
<remove cmd='%PROGRAMFILES%\PDFCreator\unins000.exe /VERYSILENT' />
</package>
</source>
 
 
 
== PDFCreator 0.9.7 ==
152
edits