You are mixing to things in your condition:
- Property Installed is telling us if product is installed or not
- &Feature is telling us to what state feature is changing from its current 
state

This important to understand because user may select a feature to be installed 
during fresh install of the product or select to install a feature during 
maintenance installation (during fresh install feature has not been selected 
for installation).  If what you want is to run custom action on feature 
installation regardless of fresh install or maintenance install, you should not 
include property Install in the conditional statement.

Now, regarding valid value for &Firebird.  According to 
http://msdn.microsoft.com/en-us/library/aa368012(VS.85).aspx, value 3 indicates 
that the feature is about to be installed locally and value 4 means that the 
feature is about to be installed to run from source.  If you want to cover both 
cases in your condition for custom action, then condition should look like:

&Firebird=3 Or &Firebird=4


Regards,
Alex




-----Original Message-----
From: Frank Cohen [mailto:frankensp...@gmail.com]
Sent: Wednesday, December 31, 2008 8:20 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Detecting if a feature is marked for install

The name of my feature is called "Firebird".  I want the action to run if
the component has been selected and not installed.  Here is what I have:

 <Custom Action="RunFirebirdInstaller"  Before="InstallFinalize"   >
<![CDATA[NOT Installed AND NOT &Firebird=0]]></Custom>

This is what I get:

DEBUG: Error 2753:  The File 'Firebird_Installer' is not marked for
installation.

What is the syntax I am supposed to be using here?
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to