Rob,

That works. Thanks.

So to toggle the value, I did the what you see below. I tried just
setting default property values for it, but that didn't work. Should it
have? Just curious. I don't have any major problems with the method I
used.



<CustomAction Id="SetProp2True" Property="Property2" Value="True" />
<CustomAction Id="SetProp2False" Property="Property2" Value="False" />

And scheduled like so:

<Custom Action=" SetProp2True" After="AppSearch">Property1 </Custom>
<Custom Action=" SetProp2False" After="AppSearch">NOT Property1
</Custom>


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob
Hamflett
Sent: Thursday, June 21, 2007 12:35 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Set Property2 if Property1 is set...

Create a CA like this:
<CustomAction Id="setProp2" Property="Property2" Value="True" />

and schedule it like this:
<Custom Action="setProp2" After="AppSearch">Property1</Custom>

If you need these properties to make it over to the server side
(InstallExecuteSequence) from the 
UI, then they need to be in capitals.

Rob


[EMAIL PROTECTED] wrote:
> Hello All:
> 
>  
> 
> This seems to be a simple thing, but I have not found an acceptable
way 
> to do this. It is pretty much:
> 
>  
> 
> In a merge module <Module/>, do:
> 
>  
> 
> If Property1 Exists
> 
>    Set Property2 = True.
> 
>  
> 
>  
> 
> Property2 is NOT set from a DirectorySearch, RegistrySearch, etc. But
is 
> only set if Property1 is set. Also, Property2  SHOULD NOT receive the 
> value of Property1, but should be set to "True". Property1 will be
some 
> value set from the registry (In this case, a server name).
> 
>  
> 
>  
> 
> How can I accomplish this?
> 
>  
> 
> I have vbscript that I could add to a custom action to do the same 
> thing, but I would rather not take that route.
> 
> 
>
------------------------------------------------------------------------
> 
>
------------------------------------------------------------------------
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> 
> 
>
------------------------------------------------------------------------
> 
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to