I know that this is really old, but I don't see any reply to this, and I thought that I would respond so that, if nothing else, the archive will contain the answer.
If you grab the source code and look at the WXS files for the extensions you will see that many of the custom actions have @Overridable="yes" set, which allows you to copy that element (without the Overridable attribute) into your authoring and alter things like the sequencing and the condition as you need without link errors. The VS2010InstallVSTemplates is one of those many custom actions that can be overridden that way. Blair -----Original Message----- From: Ian Williams [mailto:iawil...@microsoft.com] Sent: Monday, November 21, 2011 5:02 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Conditionally Including CustomActionRefs Thank you for your reply. I do mean runtime. The CustomAction I'm including is from the WixVSExtension: VS2010InstallVSTemplates and the like. According to the documentation on this, it says that if you include the CustomActionRef, it will schedule everything for you (which I've observed is true). So I'm not sure how I can inject an extra condition into this. I don't have much experience with this area of wix. Ian -----Original Message----- From: Castro, Edwin G. (Hillsboro) [mailto:edwin.cas...@fiserv.com] Sent: Monday, November 21, 2011 4:51 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Conditionally Including CustomActionRefs Do you mean buildtime? Check the preprocessor conditional statements: http://wix.sourceforge.net/manual-wix3/preprocessor.htm If you really mean runtime, when the package is getting installed, then you don't want to think of it as conditionally including a CustomActionRef. In this case you want to always include the CustomActionRef and use an appropriate condition in the schedule to determine whether it runs or not. Edwin G. Castro Software Developer - Staff Digital Channels Fiserv Office: 503-746-0643 Fax: 503-617-0291 www.fiserv.com P Please consider the environment before printing this e-mail > -----Original Message----- > From: Ian Williams [mailto:iawil...@microsoft.com] > Sent: Monday, November 21, 2011 4:17 PM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Conditionally Including CustomActionRefs > > I'm trying to conditionally include some CustomActionRef's based on a > property at runtime. I'm on WiX 3.6 beta right now. I can't figure out how to do this. > Does anyone know if this is possible? > > Thanks, > Ian > > ---------------------------------------------------------------------- > -------- All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users