Changes

Jump to: navigation, search

PDFCreator

2,728 bytes removed, 08:11, 14 May 2013
removed older versions 0.8.0
These will install only these ones.
But on sourceforge, an MSI package of 0.9.3 without toolbar is available.
 
== Older PDFCreator versions ==
 
Do a manual installation of PDFCreator using the dos shell:
 
<code>PDFCreator-0_8_0_GNUGhostscript.exe /SAVEINF="pdfcreator-0.8.0.inf"</code>
 
Use the inf-file for the installer:
<source lang="xml">
<package
id="pdfcreator-0.8.0"
name="PDF Creator 0.8.0"
revision="1"
reboot="true"
priority="1000">
<check type="uninstall" condition="exists" path="PDFCreator 0.8.0" />
<install cmd='%SOFTWARE%\pdfcreator\PDFCreator-0_8_0_GNUGhostscript.exe /LOADINF="%SOFTWARE%\pdfcreator\pdfcreator-0.8.0.inf" /VERYSILENT /NORESTART /SP-' />
<remove cmd='"%ProgramFiles%\PDFCreator\unins000.exe" /VERYSILENT' />
</package>
</source>
 
<ul>
<li>Watch out to really use the /NORESTART parameter in the install. If you don't this will happen: the installer will restart the machine, but wpkg doesn't have time to make a note about the successful installation, on reboot wpkg will try and reinstall the package, but skip because it finds "PDFCreator 0.8.0" in the uninstall folder. PDFCreator has been installed, but the user will always be nagged by the wpkg notification after a reboot.</li>
<li>Using the environment variable %ProgramFiles% keeps your uninstall independent of the windows language version. Watch out to also remove the Path="c:\somepath" entry in the inf-file if you want a truly language-independent installation.</li>
<li>There is also a patch for this version of PDFCreator. Because it produces the same uninstall entry as this version, i.e. "PDFCreator 0.8.0" I have not yet found a way to successfully add it as an additional package. - Now I have, see next section.</li>
</ul>
 
== Installing 0.8.0-patch2 ==
Create the inf file with the new version in the same way as above. Create the package:
<source lang="xml">
<package
id="pdfcreator-0.8.0-patch2"
name="PDF Creator 0.8.0"
revision="1"
reboot="true"
execute="once"
priority="999">
<install cmd='%SOFTWARE%\ ... (nearly same as above) ...' />
<remove cmd='"%ProgramFiles%\PDFCreator\unins000.exe" /VERYSILENT' />
</package>
</source>
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:
<source lang="xml">
<profile id="pdfcreator">
<package package-id="pdfcreator-0.8.0" />
<package package-id="pdfcreator-0.8.0-patch2" />
</profile>
</source>
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]]
65
edits

Navigation menu