1

Is there a way to check for the product version that windows installer is upgrading from, such that, a specified custom action only runs on upgrades from certain versions?

Thanks.

RKM
  • 3,081
  • 8
  • 35
  • 48

2 Answers2

3

Yes you can create a file search that will check for a specific version and set a property you can use in your custom action condition. See http://wix.sourceforge.net/manual-wix3/check_the_version_number.htm for a nice guide.

caveman_dick
  • 5,872
  • 3
  • 29
  • 48
1

You need to defined your upgrade rule, using a a custom public property, here are more details: How to implement WiX installer upgrade? Then use this property to create the condition desired.

Community
  • 1
  • 1
Bogdan Mitrache
  • 10,170
  • 17
  • 32