Discussion:
[WiX-users] RegistrySearch problem
vorsichtdiekurve
2014-07-23 07:38:22 UTC
Permalink
Hi,
I'm trying to determine what if a version of PostgreSQL is installed on a
windows 8.1 64 bit machine, using the following code:
*<util:RegistrySearch Root="HKLM" Id="PostgreSearch" Win64="yes"
Key="SOFTWARE\PostgreSQL\Installations\posgresql-x64-9.3" Value="Version"
Variable="PostgreVersion" />*
But when running the bootstrapper, i get this in the install log:
*Registry key not found. Key =
'SOFTWARE\PostgreSQL\Installations\posgresql-x64-9.3'*
Actually the key exists, it can be found using regedit.
Thank you in advance for any answer.
Mateusz



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/RegistrySearch-problem-tp7596055.html
Sent from the wix-users mailing list archive at Nabble.com.
Carter Young
2014-07-23 14:49:21 UTC
Permalink
Are you having the same problem as the Poster here:

http://stackoverflow.com/questions/19227335/wix-burn-3-7-and-postgresql-registry-search-fail

Did the answer help?

Carter
Post by vorsichtdiekurve
Hi,
I'm trying to determine what if a version of PostgreSQL is installed on a
*<util:RegistrySearch Root="HKLM" Id="PostgreSearch" Win64="yes"
Key="SOFTWARE\PostgreSQL\Installations\posgresql-x64-9.3" Value="Version"
Variable="PostgreVersion" />*
*Registry key not found. Key =
'SOFTWARE\PostgreSQL\Installations\posgresql-x64-9.3'*
Actually the key exists, it can be found using regedit.
Thank you in advance for any answer.
Mateusz
--
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/RegistrySearch-problem-tp7596055.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
vorsichtdiekurve
2014-07-23 15:21:54 UTC
Permalink
Unfortunately, it didn't.
My problem is that the registry key is not being found, not that the
registry search is not being executed.
Here is my bootsrapper code:
<Bundle Name="Setup" Version="1.0.0.0" Manufacturer="Company"
UpgradeCode="3731eedd-c21c-40e2-bf03-653ea4a186e2">
<BootstrapperApplicationRef
Id="WixStandardBootstrapperApplication.RtfLicense" />
<util:RegistrySearch Root="HKLM" Id="PostgreSearch" Win64="yes"
Result="exists" Key="SOFTWARE\PostgreSQL\Installations\posgresql-x64-9.3"
Value="Version" Variable="PostgreVersion" />
<Chain>
<ExePackage Id="PostSQL93" Name="PostgreSQL x64 9.3 setup" Cache="no"
Compressed="yes" PerMachine="yes" Permanent="yes" Vital="yes"
InstallCommand="/q"
SourceFile="postgresql-9.3.4-4-windows-x64.exe"
DetectCondition="PostgreVersion" />
<RollbackBoundary/>
<MsiPackage Id="ManServ" SourceFile="SetupProject1.msi" Vital="yes"
DisplayInternalUI="yes"/>
</Chain>
</Bundle>




--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/RegistrySearch-problem-tp7596055p7596062.html
Sent from the wix-users mailing list archive at Nabble.com.
Chaitanya
2014-07-23 15:40:26 UTC
Permalink
Post by vorsichtdiekurve
Unfortunately, it didn't.
My problem is that the registry key is not being found, not that the
registry search is not being executed.
<Bundle Name="Setup" Version="1.0.0.0" Manufacturer="Company"
UpgradeCode="3731eedd-c21c-40e2-bf03-653ea4a186e2">
<BootstrapperApplicationRef
Id="WixStandardBootstrapperApplication.RtfLicense" />
<util:RegistrySearch Root="HKLM" Id="PostgreSearch" Win64="yes"
Result="exists" Key="SOFTWARE\PostgreSQL\Installations\posgresql-x64-9.3"
Value="Version" Variable="PostgreVersion" />
<Chain>
<ExePackage Id="PostSQL93" Name="PostgreSQL x64 9.3 setup" Cache="no"
Compressed="yes" PerMachine="yes" Permanent="yes" Vital="yes"
InstallCommand="/q"
SourceFile="postgresql-9.3.4-4-windows-x64.exe"
DetectCondition="PostgreVersion" />
<RollbackBoundary/>
<MsiPackage Id="ManServ" SourceFile="SetupProject1.msi" Vital="yes"
DisplayInternalUI="yes"/>
</Chain>
</Bundle>
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/RegistrySearch-problem-tp7596055p7596062.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
.
when you win64=yes it might will check in wow6432node

just give path 'SOFTWARE\wow6432node\PostgreSQL'
--
Thanks & Regards,
Chaitanya.
Bevan Weiss
2014-07-23 19:46:50 UTC
Permalink
Is this a 64/32bit registry type issue?
And is the burn package being run with elevated privileges? (just to rule
out issues with registry permissions)


Regards,
Bevan

Date: Wed, 23 Jul 2014 00:38:22 -0700 (PDT)
From: vorsichtdiekurve <***@gmail.com>
Subject: [WiX-users] RegistrySearch problem

Hi,
I'm trying to determine what if a version of PostgreSQL is installed on a
windows 8.1 64 bit machine, using the following code:
*<util:RegistrySearch Root="HKLM" Id="PostgreSearch" Win64="yes"
Key="SOFTWARE\PostgreSQL\Installations\posgresql-x64-9.3" Value="Version"
Variable="PostgreVersion" />*
But when running the bootstrapper, i get this in the install log:
*Registry key not found. Key =
'SOFTWARE\PostgreSQL\Installations\posgresql-x64-9.3'*
Actually the key exists, it can be found using regedit.
Thank you in advance for any answer.
Mateusz
vorsichtdiekurve
2014-07-24 07:42:24 UTC
Permalink
Well, it's a little bit embarrasing, but i've already found what was the
issue. There was a typo in the registry path.
Anyway, thank's for your effort.
Mateusz



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/RegistrySearch-problem-tp7596055p7596070.html
Sent from the wix-users mailing list archive at Nabble.com.

Continue reading on narkive:
Search results for '[WiX-users] RegistrySearch problem' (Questions and Answers)
6
replies
How many items did you have on your registry
started 2008-08-08 11:21:14 UTC
pregnancy
Loading...