سؤال

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