Alex, Thanks for your reply. This did the trick@ I don't completely understand how it works, because shouldn't "NOT &Firebird=0" and "&Firebird=3 OR &Firebird=4" both evaluate to true if they're selected? You make a good point regarding the update and I've removed the "Installed" test.
Frank On Wed, Dec 31, 2008 at 2:28 PM, Alexander Shevchuk < alexander.shevc...@microsoft.com> wrote: > 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<http://msdn.microsoft.com/en-us/library/aa368012%28VS.85%29.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 > ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users