oleg-shilo / wixsharp

Framework for building a complete MSI or WiX source code by using script files written with C# syntax.
MIT License
1.05k stars 168 forks source link

Is there support for 4 digit version upgrade? #1536

Open RachelXGanon opened 4 weeks ago

RachelXGanon commented 4 weeks ago

Hi, I'm using MagorUpgrade and it's working well but only for the first 3 digits of the version. For example: Upgrade from 1.2.3 => 1.2.5 works well. Upgrade from 1.2.3.4 => 1.2.3.5 doesn't work.

Is there a way to support upgrade for the 4th digit too? Thank you.

Torchok19081986 commented 4 weeks ago

morning, first question: why do you want also check 4 digit or install version ? Some major reasons ? Second - AFAIK msi do always ignore 3 and 4 digit in version number. If you want always to uninstall and then install your newer version of msi package, just set always newer version to new msi package and add version number to output msi like project.Version to msi package on buildmsi(). Thats it. There also extension in visual studio 2022 for change current version number. i use for example https://marketplace.visualstudio.com/items?itemName=Newky2k.VersionChanger2022 this one or https://marketplace.visualstudio.com/items?itemName=PrecisionInfinity.PrecisionInfinityAutomaticVersions3 . Which allows your custom version on build current project. Just need some configuration.

best regards. Torchok.

CADbloke commented 3 weeks ago

The first 3 sets of digits count, the 4th set is ignored. I use AutomaticVersions (link above) to increment the 3rd digit as a build number so it always gets updated. I use the 4th digit yyddd as a date-stamp (ddd is the day of the year, 1-366). Semantic, no - useful, yes. By the time int overflows for the year I will be dead.