Thanks Jacob, I followed your suggestion and now I'm getting different behavior. On machines without the VS2013 installed, it now properly omits the component.
But on machines with VS2013, the folder it installs the component in is now d:\VS12Root\... instead of the folder pointed to by the VS12_ROOT_FOLDER property. I guess the custom action didn't do anything or something else is wrong. Is that space " " in front of Directory=" VS12_ROOT_FOLDER" meaningful ? I omitted it. I wasn't sure where to put the custom action, so I put it in the fragment that does the directory search. Should I put it elsewhere? Thanks again. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/problem-with-conditional-component-tp7588732p7588799.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users