Hi, I have some SetProperty code need to be executed after LaunchCondition, e.g. <SetProperty Id="use_proxy" Value="1" After="LaunchConditions" Sequence="ui"><![CDATA[PROXY_SERVER <> ""]]></SetProperty> To make the Product.wxs file clean, I added a new file Prepare.wxs, and move the SetProperty code into that file, under the Fragment element.
However, I found the SetProperty does not get executed when I put it in Prepare.wxs, but it works when in Product.wxs. I checked the document, and found: The contents of a Fragment element can be linked into a product by utilizing one of the many *Ref elements. So I add a <CustomeAction Id="Foo" ...> to Prepare.wxs, and in the Product.wxs, use <CustomActionRef Id="Foo"> Everything works fine now, but I have little concern, because it seems strange to me that the final result is based on some cheating element. Am I doing right, or there is some recommended way for this? Thanks, -Elfe ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users