Difference between revisions of "Talk:PDFCreator"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (some ordering, sorry for messing up)
(Disable update in pdfcreator)
Line 130: Line 130:
  
 
Update by KTJ: Remember, than Windows 7 '''x64''' have a different registy patch for local machine - [HKEY_LOCAL_MACHINE\SOFTWARE\'''Wow6432Node'''\PDFCreator\Program]
 
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

Revision as of 13:27, 4 December 2012

Error 339 MSCOMCT2.OCX

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)

automatic update check

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)
See also Chapter "Settings in PDFCreator" in the Pdfcreator user manual at http://www.pdfforge.org/content/settings-pdfcreator
Also instead of messing around with regedit to import the settings you can also use the regfile parameter of the Pdfcreator setup: PDFCreator-1_0_0_setup.exe /REGFILE=%SOFTWARE%\pdf.reg
pdf.reg is a simple Windows registry export file.


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>

Disable update in pdfcreator

Hi

After adding HKLM\SOFTWARE\PDFCreator\Program\UpdateInterval=0 to my installer, my users aren't automatically asked about updates anymore

But they still have the option to use the menu Help/Check Updates

I solved that issue about version 1.3.2 with HKLM\SOFTWARE\PDFCreator\Program\ApplicationVersion=9.1.3.2

And now my users can't upgrade using the menu Help/Check Updates, because they is only told, that they have the latest version, and not that it is version "9.1.3.2"

And if they use the menu Help/About they is still told that they have version 1.3.2 installed.

So now my installer script both have the UpdateInterval and the ApplicationVersion regkeys.

Sincerely

J. Malmgren IT-Programmer Denmark [1]

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