Difference between revisions of "Talk:PDFCreator"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
Line 53: Line 53:
 
</Feature>
 
</Feature>
 
<InstallExecuteSequence>
 
<InstallExecuteSequence>
<Custom Action="InstallPDFCreator" After='UpgradePDFCreator' />
+
<Custom Action="InstallPDFCreator" After='InstallFinalize' />
 
<Custom Action="UpgradePDFCreator" Before="InstallFinalize"/>
 
<Custom Action="UpgradePDFCreator" Before="InstallFinalize"/>
 
<Custom Action="UpgradePDFCreator1" Before="InstallFinalize"/>
 
<Custom Action="UpgradePDFCreator1" Before="InstallFinalize"/>

Revision as of 14:29, 30 April 2010

I just posted a feature request to PDFCreator on Sourceforge, asking for the possibility to enable/disable automatic update check: http://sourceforge.net/tracker/?func=detail&aid=2764856&group_id=57796&atid=485460

I asked this because I prefer to take care to update this software via WPKG. Ilgino 11:42, 15 April 2009 (CEST)


One of the developers answered my feature request and stated that we can add the UpdateInterval in the HKLM\ tree, and that this will override the value in any HKCU\ tree. So a single value in the HKLM\ tree forces the update interval "system wide". I'm about to post an updated 0.9.8 version package definition. Ilgino 10:51, 22 April 2009 (CEST)


For any reason, uninstall of pdfcreator leaves unins000.exe and new installation creates unins001.exe and unins001.dat. So you may check for dat-File rather than exe and delete whole pdfcreator directory before installing. You get strange screens from uninstall without acompaying dat-File.

MSI Package

Hi, for those who want to have it as an MSI-Package, here is the WIX source I created for my office.

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
	<Product Id="{6B2C9F5D-24EF-4557-BC2E-9C9DF182A8D7}" Name="PDFCreator Installation" Language="1031" Version="0.9.7.0" Manufacturer="Justus Bisser" UpgradeCode="{CCC0309B-5D5E-49cf-BA82-C53674AA15E4}" Codepage="1252">
		<Package InstallerVersion="200" Compressed="yes" InstallPrivileges="elevated" />

		<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />

		<Directory Id="TARGETDIR" Name="SourceDir">
			<Directory Id="ProgramFilesFolder">
				<Directory Id="INSTALLLOCATION" Name="PDFCreator">
					<Component Id="cmpPDFCreatorSetup" Guid="{4DCC16FC-9522-4dcf-8A89-1F5C6FBBDBD6}">
						<File Id="filePDFCreatorSetup" KeyPath="yes" Source="PDFCreator\PDFCreator-0_9_7_setup.exe" />
						<RegistryKey Root="HKLM"
												 Key="SOFTWARE\PDFCreator\Program"
									Action="createAndRemoveOnUninstall">
							<RegistryValue Type="string" Name="UpdateInterval" Value="0" />
						</RegistryKey>
					</Component>
				</Directory>
			</Directory>
		</Directory>

		<Property Id="UNINS000DAT">
			<DirectorySearch Id="CheckFileDir" Path="[ProgramFilesFolder]\PDFCreator" Depth="0">
				<FileSearch Id="CheckFile" Name="unins000.dat" />
			</DirectorySearch>
		</Property>
		<Property Id="UNINS001DAT">
			<DirectorySearch Id="CheckFileDir1" Path="[ProgramFilesFolder]\PDFCreator" Depth="0">
				<FileSearch Id="CheckFile1" Name="unins001.dat" />
			</DirectorySearch>
		</Property>

		<Feature Id="ProductFeature" Title="PDFCreator" Level="1">
			<!-- TODO: Remove the comments around this ComponentRef element and the Component above in order to add resources to this installer. -->
			<!-- <ComponentRef Id="ProductComponent" /> -->
			<ComponentRef Id="cmpPDFCreatorSetup"/>
		</Feature>
		<InstallExecuteSequence>
			<Custom Action="InstallPDFCreator" After='InstallFinalize' />
			<Custom Action="UpgradePDFCreator" Before="InstallFinalize"/>
			<Custom Action="UpgradePDFCreator1" Before="InstallFinalize"/>
			<Custom Action="UninstallPDFCreator" Before="UnpublishFeatures"/>
			<Custom Action="UninstallPDFCreator1" Before="UnpublishFeatures"/>
		</InstallExecuteSequence>

		<CustomAction Id="InstallPDFCreator"
									FileKey="filePDFCreatorSetup"
									ExeCommand=' /silent /norestart /components=\"!toolbar\" /tasks=\"!desktop_icon\"" /f"'
									Return='ignore'
		>NOT Installed</CustomAction>
		<CustomAction Id="UpgradePDFCreator"
									Directory="INSTALLLOCATION"
									ExeCommand='[ProgramFilesFolder]\PDFCreator\unins000.exe /VERYSILENT /SUPPRESSMSGBOXES'
								Return='ignore'
		>UNINS000DAT</CustomAction>
		<CustomAction Id="UninstallPDFCreator"
									Directory="INSTALLLOCATION"
									ExeCommand='[ProgramFilesFolder]\PDFCreator\unins000.exe /VERYSILENT /SUPPRESSMSGBOXES'
									Return='ignore'
		>UNINS000DAT</CustomAction>
		<CustomAction Id="UpgradePDFCreator1"
									Directory="INSTALLLOCATION"
									ExeCommand='[ProgramFilesFolder]\PDFCreator\unins001.exe /VERYSILENT /SUPPRESSMSGBOXES'
									Return='ignore'
		>UNINS001DAT</CustomAction>
		<CustomAction Id="UninstallPDFCreator1"
									Directory="INSTALLLOCATION"
									ExeCommand='[ProgramFilesFolder]\PDFCreator\unins001.exe /VERYSILENT /SUPPRESSMSGBOXES'
									Return='ignore'
		>UNINS001DAT</CustomAction>
	</Product>
</Wix>