Try adding Secure="yes" on the Property.  This means that "the Property can
be passed to the server side when doing a managed installation with elevated
privileges".  I don't fully understand what "the server side" is, but I
think it has something to do with the "transactional" part of the
installation, and I think it's where deferred custom actions happen.

If you turn on logging, you'll see it list out property values with "(c)",
which is "the client side", and later with "(s)", which is "the server
side".  If you see that this property has the correct value with a "(c)" and
has no value with "(s)", then you need to mark it as "secure".

Related:
-
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Property-Secure-when-to-use-td4982590.html
-
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Simple-question-about-properties-tp4974905p4980963.html


Another possibility is that you are looking for the wrong thing. 
[HKLM\Software\Microsoft\Microsoft SQL Server\MSRS10_50.MSSQLSERVER] does
not normally have a value named "test" on it.  If you are looking for a SQL
Server 2008 R2 SSRS installation path, that's usually on the key
[HKLM\Software\Microsoft\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Setup]
on the value "SQLPath" or "SqlProgramDir".

Regards,
Mike


-----Original Message-----
From: Brett Faurot [mailto:Brett.Faurot@]
Sent: Tuesday, June 10, 2014 12:51 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] RegistrySearch doesn't find Key

Thank you Phil and Pavan,
I have tried explicitly calling out 64-bit and specifying type="directory"
but it still fails to find it. The only difference I can tell between this
use and others in the installer are the . and _ in the key. I was wondering
if that was throwing the registrysearch off.  It's frustrating when such a
simple thing causes a dead stop in work.

-----Original Message-----
From: Phil Wilson [mailto:phildgwilson@] 
Sent: Saturday, June 07, 2014 1:56 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] RegistrySearch doesn't find Key

..and also don't forget there are 64-bit and 32-bit registries so you may
need to explicitly choose one.
---------------
Phil Wilson


On Fri, Jun 6, 2014 at 12:43 PM, Pavan Konduru <Pavan.Konduru@> wrote:
> Try putting type ="directory"
>
> -----Original Message-----
> From: Brett Faurot [mailto:Brett.Faurot@]
> Sent: Friday, June 06, 2014 12:32 PM
> To: wix-users@.sourceforge
> Subject: [WiX-users] RegistrySearch doesn't find Key
>
> I'm having problems using a registrysearch. I'm trying to get the install
> location of MS SQL Reporting Services by checking the registry; but, my
> installer is failing the find the key.
> <Property Id="REPORTINGSERVICESPROP">
>        <RegistrySearch Id="SqlSearch" Root="HKLM" 
> Key="Software\Microsoft\Microsoft SQL Server\MSRS10_50.MSSQLSERVER" 
> Name="test" Type="raw" /> </Property>
>
> This same method is used successfully many other times in this installer. 
> Also, I can successfully populate the property looking for a value when
> the Key="Software\Microsoft\Microsoft SQL Server". It seems to be only
> once I introduce MSRS10_50.MSSQLSERVER that the registrysearch fails and
> the property fails to populate.  Any ideas?
>
> Thanks,
> Brett




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

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to