I am using a condition to install a component only when a certain feature is installed and to uninstall this component if this feature is installed. The component is installed bur doesn't get removed on uninstall but I have no idea why it happens ad the verbose log shows that this feature is installed locally.
.
I am using the condition:
<Condition> <![CDATA[(&SQLFeature = 3) OR (!SQLFeature = 3)]]> </Condition>

Here is the code:

<Component Id="KmfDatabase" Guid="{82B345FC-A889-44c2-A964-DE2495DC0D29}">
<Condition> <![CDATA[(&SQLFeature = 3) OR (!SQLFeature = 3)]]> </Condition> <sql:SqlDatabase Id="$(var.DataBaseName)" Database="$(var.DataBaseName)" ContinueOnError="yes" CreateOnReinstall="no" CreateOnUninstall="no" CreateOnInstall="yes" DropOnReinstall="no" DropOnUninstall="no" DropOnInstall="no" Server="[ComputerName]"/> <sql:SqlScript BinaryKey="RemoveDatabseUsers" ExecuteOnInstall="no" ExecuteOnUninstall="yes" SqlDb="$(var.DataBaseName)" Id="RemoveDBScript" ContinueOnError="no" ExecuteOnReinstall="no" />



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