You can't "embed" RegistrySearch inside custom action.  RegistrySearch is what 
will be called by standard AppSearch 
(http://msdn.microsoft.com/en-us/library/aa367578(VS.85).aspx) action.  What 
you need to do is write either scripting or C/C++ dll custom action, do 
registry search using code and then set the value of some property to a value 
from the registry.

Alex




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Natxo Mateos
Sent: Friday, June 13, 2008 12:01 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] using one property to set another

Hi,

I'm not sure if I'm responding in the correct mode. I mean, how it's supposed 
to response a mail via the sourceforge list.

I'm don't know how to embed a RegistrySearch elemenent inside
a CustomAction. What I've done is set to a property :

*        <CustomAction Id="MYSOFT_LOCATION">
            <Property Id="MySoft_location">
                <RegistrySearch Id="regSearch1" Root="HKLM" 
Key="[MYSOFT_REGISTRY]" Name="Location" Type="raw" />
            </Property>
        </CustomAction>*

But obviously doesn't compile. How it's supposed to be done? I'm newbie
with installers and I'm finding quite complicate to work with a
non-procedural installer way.

One last question. After the CA is correctly defined, to force that
custom action to be executed after another one would be like this:

        <InstallExecuteSequence>
            <Custom Action="Assign1" After="CostInitialize" />
            <Custom Action="MYSOFT-LOCATION" After="Assign1" />
        </InstallExecuteSequence>

Thanks in advance.


--

Regards,

*Natxo Mateos*
[EMAIL PROTECTED]

*Asuni CAD* - _www.asuni.es <http://www.asuni.es>_ - 93 319 6868 - 91
541 6439
*Especialistas en el desarrollo de aplicaciones a medida sobre AutoCAD*

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to