Neil,

Documentation on AppSearch table does not say that Property column has to be 
unique, so I don't think it is illegal to have multiple rows for the same 
property in the AppSearch table.  The order of evaluation for the same property 
should go from least desirable to most desirable.  The only concern I have here 
is that it will work as long as no custom action or any other database 
manipulation procedure will change the order of records in the AppSearch table. 
 Since it is possible to reorder records - I'd say that this feature is 
available, but not 100% reliable.
Interesting thing is that WiX documentation on Property element (both v2 and 
v3) is saying:

Children
  Sequence (min: 1, max: 1)

Not sure how to interpret that, but the way I read this is that this element 
supports just one child which is a sequence of elements in it (ComplianceDrive, 
ComponentSearch, etc).

Alex




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil Sleightholm
Sent: Monday, August 18, 2008 2:24 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Multiple RegistrySearch elements

This works but is it supported?



    <Property Id="USERNAME">

      <RegistrySearch Id="RegUserName1" Root="HKLM"
Key="SOFTWARE\Microsoft\Windows NT\CurrentVersion"
Name="RegisteredOwner" Type="raw" />

      <RegistrySearch Id="RegUserName2" Root="HKLM"
Key="SOFTWARE\MyCompany\License" Name="RegisteredName" Type="raw" />

    </Property>



What this does is set the property USERNAME to either the default value
from the CurrentVersion key or from my local application setting. As I
said in the initial question, it works but is it reliable, am I just
lucky?



Neil



Neil Sleightholm
X2 Systems Limited
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to