Thanks Nicolás!
But, not quite understand what do you mean. Could you please explain more?
What I need to do is:
In Wix, I need check registry, if some keys exists, I need keep some
components there during uninstall.
Now, I modified code to make the Comonent Id and File Id different to
eliminate the error as:
<Property Id="COM_INSTALLED">
<RegistrySearch Id="COM_Installed" Key="SOFTWARE\...\Current Version"
Root="HKLM" Type="raw" Win64="$(var.Win64)" />
</Property>
...
<Component Id="File1_P" Guid="..." DiskId="1" Permanent
="yes" Transitive ="yes" >
<Condition ></Condition>
<File Id="File_file1_P" 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>
Then, it works, but I got warning message and it took longer time to
compile. Since I have a lot of components, any better way to increase the
performance?
Thanks again!
Ruth
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Wix-Conditional-uninstall-tp7591787p7591794.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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users