The first one without @Name specified should be working, I just tried it
with SOFTWARE\Adobe\Acrobat Reader\9.0\InstallPath - works 

<Property Id="PROPERTY">
      <RegistrySearch Id="PROPERTY_REGSEARCH" Root="HKLM"
Key="SOFTWARE\Adobe\Acrobat Reader\9.0\InstallPath" Type="raw" />
</Property>


Best regards,
Sebastian Brand

Instyler Setup - Creating WiX-based MSI installations, elegantly.
http://www.instyler.com



-----Original Message-----
From: Tamara Kustarova [mailto:kustar...@fastmq.com] 
Sent: July 29, 2009 10:27
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] How to search for Default name in Registry

Hello,

I would like to check, if default Name is present in registry.
According to http://msdn.microsoft.com/en-us/library/aa371171(VS.85).aspx
"Note that it is not possible to use the RegLocator table to check only 
for the presence of the key. However, you can search for the default 
value of a key and retrieve its value if it is not empty."

I tried doing:
 <Property Id="PYTHON">
     <RegistrySearch Id="PYTHONSearch" Root="HKLM" 
Key="SOFTWARE\Python\PythonCore" Type="raw" />   
 </Property>

or

<Property Id="PYTHON">
     <RegistrySearch Id="PYTHONSearch" Root="HKLM" 
Key="SOFTWARE\Python\PythonCore" Type="raw"  Name="(Default)"/>   
 </Property>

or

<Property Id="PYTHON">
     <RegistrySearch Id="PYTHONSearch" Root="HKLM" 
Key="SOFTWARE\Python\PythonCore" Type="raw"  Name="Default"/>   
 </Property>

but neither of these did work.

If I set the Name="" candle.exe says that I should leave it out if I 
want it to be null of empty. But that did't work too.

Does anybody have advice on this?

Tamara

----------------------------------------------------------------------------
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus
on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to