we are using wix project to create msi. We were trying to do major upgrade.

We did change the product code and product version and created new Msi

New msi is installed [ registry keys were created and installdir contains latest files] in the machine.

Now we are seeing two product codes in Uninstall registry key. I think old msi is not uninstalled properly.

When we update product code it should take care of it automatically,isn't it? What could have been the reason for not uninstalling the older one?

有帮助吗?

解决方案

When we update product code it should take care of it automatically,isn't it?

No, changing the product code isn't enough to cause the previous version to be removed.

To implement an upgrade which removes the previous version, use the MajorUpgrade element as described in the wix documentation on the subject.

其他提示

The symptoms tell me you haven't properly authored your major upgrade. What does the wxs look like? What does your old and new ProductVersion property look like?

FindRelatedProducts / RemoveExistingProducts isn't recogizing the old ProductCode and it's not being removed.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top