Talk:PDFCreator

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

Error 339 MSCOMCT2.OCX[edit]

After Updating from 1.3.2 to 1.4.1 I run into the follwing error: "339 (Component MSCOMCT2.OCX or one of its dependencies not correctly registered: a file is missing or invalid)"

I solved the problem by registering MSCOMCT2.OCX again.

<command type="upgrade" cmd="regsvr32 /s %SYSTEMROOT%\SysWOW64\MSCOMCT2.OCX"/>

note the above code is for 64bit-OS. For a 32bit OS it would be

<command type="upgrade" cmd="regsvr32 /s %SYSTEMROOT%\System32\MSCOMCT2.OCX"/>

--Konus 16:08, 26 June 2012 (CEST)

MSI Package[edit]

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 /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>

Disable update in pdfcreator[edit]

Update by KTJ: Remember, than Windows 7 x64 have a different registy patch for local machine - [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\PDFCreator\Program]

Instead of this hack you can also set HKLM\SOFTWARE\PDFCreator\Program\DisableUpdateCheck = "1" [REG_SZ] and the update buttons in the program will be hidden/disabled. See http://www.pdfforge.org/content/hidden-settings

Also instead of messing around with regedit to import the settings you can also use the regfile parameter of the Pdfcreator setup: PDFCreator-1_7_2_setup.exe /REGFILE=%SOFTWARE%\pdf.reg