سؤال

I have a requirement like: The earlier versions of the product leaves back some registry entries which needs to be cleaned up using WIX 3.5 in Visual

Approach: Search the installed versions of the product from the registry Then, search each registry entry which doesnot match with the version of the product version and do Registry Action=remove.

How can I achieve this? How can I store all the versions of a product while doing a RegistrySearch in WIX?

Can anyone please provide the code of this?

هل كانت مفيدة؟

المحلول

If the registry keys are unique to your product and need removed when installing the latest version of the product, then there isn't really a need to check for various previous versions. Simply just remove the registry keys during install, regardless of what was previously installed. If the keys already exist they will be deleted, if not, then no worries.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top