You're going to need a Custom Action, but thankfully it's the simple kind which 
can be done in WiX. 
  You want a Property like this:
<Property Id="SERVERURL" Value="http://url-prod.com"; />

And a Custom Action like this:
<CustomAction Id="SetTestURL" Property="SERVERURL" Value="http://url-test.com"; 
/>

Then in your InstallExecuteSequence, and possibly the InstallUISequence if you 
need it in the UI:
<Custom Action="SetTestURL" After="AppSearch">SERVERENV = "TEST"</Custom>

It doesn't have to be after AppSearch; it's a just a good place I thought of 
off the top of my head.

Rob


Paramesh S wrote:
> Hi,
> 
> During MSI install, I want to set values of some property based on other 
> input property value. Something like
> 
>  
> 
>         if ("[SERVERENV]" = "TEST")
> 
>             <Property Id="SERVERURL" value=http://url-test.com />
> 
>         else
> 
>             <Property Id="SERVERURL" value=http://url-prod.com />
> 
>         Endif
> 
>  
> 
> Can someone tell me how to do this? Can we do this without using custom 
> action?
> 
> Thanks,
> 
> Paramesh
> 
> 
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> 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