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

Reply via email to