I see.  How about just putting the component into Feature1 so that it will run when Feature1 is installed locally?

 

Derek

 


From: Scott Sam [mailto:[EMAIL PROTECTED]
Sent: Friday, July 28, 2006 5:12 AM
To: [EMAIL PROTECTED]; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] conditions

 

I need to write out to a config file what features are being installed, so that the program that update/creates the database knows what database to create/update if any at all.

 


From: Derek Cicerone [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 27, 2006 6:12 PM
To: Scott Sam; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] conditions

 

What are you trying to do overall?  Using feature conditions in a component’s condition is a little awkward – usually features directly determine if a component will be installed.

 

Derek

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sam
Sent: Wednesday, July 26, 2006 12:25 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] conditions

 

I have a component that looks like:
            <Component Id="DbInstallationDirectoryService" Guid="A4B5E633-D715-4e8e-8C4A-E58D1BAFFBAE">

                <XmlFile Action="" ElementPath="//DBInstallation/FeaturesInstalled" File="[DBCREATION]dbinstallation.xml" Id="dbInstallationConfig20" Name="Feature" Sequence="19" Value="Feat1" />

                <Condition><![CDATA[(&Feature1 = 3) AND (!Feature1 = 3)]]></Condition>

            </Component>

 

From my understanding, it should right out <Feature>Feat1</Feature> if the Feature1 feature is being installed, and it is not an upgrade.  That is not what is happening.  What am I doing wrong?  What is the best way to do this?

-------------------------------------------------------------------------
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