Joe & is a feature-action, and ! Is the current feature state, so I am checking both the existing state and what the installer is going to do (ie IF (Not Installed and Not Going to Be Installed).
In this case I want the CONFIGURE IIS to run both on install, upgrade and repair. I often use the combination for Custom Actions to say FeatureState is Absent and FeatureAction is Local for running once on install. And vice-versa for the uninstall. As I understand it, it is fairly important to consider both. (Its also important that this run after CostFinalise.) I suppose with your database deletion issue you could have used the condition of !DBFEATURE=3 and &DBFEATURE=2 (the database feature is going from installed to uninstalled (absent). More detail is in the MSI SDK on Conditional Expressions. Michael -----Original Message----- From: Joe Osman [mailto:joe.os...@tait.co.nz] Sent: Wednesday, 18 February 2009 12:26 PM To: General discussion for Windows Installer XMLtoolset. Subject: Re: [WiX-users] How to skip a custom action when feature notselected Thanks Michael, it worked ! One question: I have noticed that you've used &MainComponent and !MainComponent Can you tell me what's the difference between the two and is it important to use two of them together? Thanks. Michael Osmond wrote: > Joe > > Try looking at the SKIPCONFIGUREIIS property (its part of WIX), this > is how I stop the installer from doing the IIS Custom action if > MainComponent is not selected. > > > <!-- Suppress the IIS CA if we are not installing the web site --> > <CustomAction Id="SkipIISCA" Property="SKIPCONFIGUREIIS" > Value="1"/> > <InstallExecuteSequence> > <Custom Action="SkipIISCA" > After="CostFinalize"><![CDATA[NOT &MainComponent=3 AND NOT > !MainComponent=3]]> > </Custom> > </InstallExecuteSequence> > > -----Original Message----- > From: Joe Osman [mailto:joe.os...@tait.co.nz] > Sent: Wednesday, 18 February 2009 11:13 AM > To: General discussion for Windows InstallerXMLtoolset. > Subject: [WiX-users] How to skip a custom action when feature not > selected > > My installer creates a website during the product installation. I > would like to add a feature to the installer to enable the user to > skip the website creation and I thought about using something similar to that: > > <Custom Action="ConfigureIIS" Overridable="yes">NOT Installed AND > <![CDATA[&IISFeature=3]]></Custom> > > But I get an error message saying that a Custom element must have a > Before attribute, After attribute, or a Sequence attribute. > > I don't want to change the sequence of this action and I really don't > care what is the sequence. All I want to do is to skip the creation of > the website by skipping the custom action ConfigureIIS. > > Do you have any other idea? > > > ====================================================================== > = This email, including any attachments, is only for the intended > addressee. It is subject to copyright, is confidential and may be the > subject of legal or other privilege, none of which is waived or lost > by reason of this transmission. > If the receiver is not the intended addressee, please accept our > apologies, notify us by return, delete all copies and perform no other > act on the email. > Unfortunately, we cannot warrant that the email has not been altered > or corrupted during transmission. > ====================================================================== > = > > > ---------------------------------------------------------------------- > -------- Open Source Business Conference (OSBC), March 24-25, 2009, > San Francisco, CA -OSBC tackles the biggest issue in open source: Open > Sourcing the Enterprise -Strategies to boost innovation and cut costs > with open source participation -Receive a $600 discount off the > registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ======================================================================= This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission. ======================================================================= ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users