Samselvaprabu
Samselvaprabu

Reputation: 18137

In Wix , should Component guid be unique across msi?

In our project , People normally copy paste the WIX files and they will change the product and upgrade code.

Normally this was working fine without any issue.

Recently we faced an issue that while uninstalling an msi some registry keys were not removed and when we verified that the log file recorded some thing like this.

Disallowing uninstallation of component: { GUID } since another client exists.

We were told that the Component guid might be used by another msi in the system.

should Component GUID also be unique across msi?

Upvotes: 1

Views: 1066

Answers (2)

PhilDW
PhilDW

Reputation: 20780

It might be normal - depends on the file. It might be a common Microsoft Dll that is in use by multiple products. Or a shared Dll from any other number of products.

However you imply that there's been some sloppiness in development and there might be duplicate guids in your own separate MSI setups. The short answer is that this is not really a WiX issue because it doesn't matter what tool you use to build MSI files. Component guids must be unique for a particular file or registry key. No duplicates. Actually Component guids need to be unique to a file or registry key across the entire system!!

Chris has given you plenty of reading.

Upvotes: 1

Related Questions