You need to make the custom action conditional based on the Installed or REMOVE properties (depending on your exact requirements), and on the &Feature syntax.
 
Something like this, maybe:
 
<Custom Action="" After="InstallFiles">(NOT Installed) AND (&MyFeature=3)</Custom>
 
Prefixing & onto the feature name gets the requested state of that feature, and 3 means "local".  The Installed property is set if your installtion is running in maintenance mode, and REMOVE is set to a list of the features that are currently being removed, if any are being removed.
 
For more info: http://msdn.microsoft.com/library/default.asp?url=""
 
Hope that helps
 
On 7/24/06, Alan Waddington <[EMAIL PROTECTED]> wrote:

I've recently started looking at the WiX toolset and have come across a
requirement I can't seem to get round, I'd be grateful for any hints
that might help.

I have a custom action that I want to execute only at installation and
only if a particular feature has been chosen for installation.  Is this
possible?

Thanks in advance
Alan Waddington

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to