Hi,
I got a problem during uninstall: 

Our COM project (build by install shield) and WIX project shared some common
files.
 In WIX, during uninstall, I want to check if our COM project is installed
or not through registry.
 
If COM project is installed, I don’t want to uninstall these shared
component; if not, I want to uninstall these components.
I tried the following code:

    <Property Id="COM_INSTALLED">
       <RegistrySearch Id="COM_Installed" Key="SOFTWARE\...\Current Version"
Root="HKLM" Type="raw" Win64="$(var.Win64)" />
    </Property>
... 
                <Component Id="File1" Guid="..." DiskId="1" Permanent ="yes"
Transitive ="yes" >
                  <Condition ></Condition>
                  <File Id="File_file1" Name="file1.dll"
Source="C:\temp\file1.dll" KeyPath="yes" Checksum="yes"/>
                </Component>
                <Component Id="File1" Guid="..." DiskId="1" Transitive
="yes" >
                  <Condition ></Condition>
                  <File Id="File_file1" Name="file1.dll"
Source="C:\temp\file1.dll" KeyPath="yes" Checksum="yes"/>
                </Component>

However, I got error "Duplicate symbol 'Component:File1' found. This
typically means that an Id is duplicated. Check to make sure all your
identifiers of a given type (File, Component, Feature) are unique."
Any idea about how should I make the logic work?
Thanks
Ruth



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Wix-Conditional-uninstall-tp7591787.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to