benderto
benderto

Reputation: 911

WiX Upgrade with custom versioning

I got a problem. I want to upgrade my app during installation process, but I run into problem with versioning. I use version number in format e.g. 5.5.789.0, some new version has version number in format 5.5.12.1. I know that installer only works with first three numbers from version so MajorUpgrade is not suitable for me. New version would not be installed in this case. Is there a way in which I can check versions in some custom action and plan upgrade from there? I cannot change the versioning as app building goes through some automatic post-processes that also works only with first three numbers and it is not possible to change that behavior.

Thanks for suggestions.

EDIT: I am using WiX#.

Upvotes: 1

Views: 282

Answers (1)

PhilDW
PhilDW

Reputation: 20780

It's not obvious to me why you can't use the WiX majorupgrade element. The settings would be AllowDowngrades=yes, maybe AllowSameVersionUpgrades=yes.

Using Schedule=afterInstallValidate is (as the docs say) removes the old product entirely before installing the new upgrade.

Upvotes: 1

Related Questions