Repository navigation
fix: Give each Windows installer a unique MSI version - #7788
Merged
Merged
Conversation
MSI compares only major.minor.build, and the sanitized app version collapsed RC, nightly, and rebuilt installers to the same 6.09.08, causing error 1638. Use the git commit count, passed by release workflows, as the build field (0 for local builds) and keep the full version in the installer description.
Contributor
🚧 PCGen Code Coverage
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Some users can't install PCGen with the Windows installer. Windows logs:
Error 1638 means another version of this product is already installed.
Cause
The installer's internal version was the PCGen version with its suffix stripped, so RCs, nightlies and rebuilds of 6.09.08 all became
6.09.08. jpackage (JDK 25) derives the installer's product code from vendor, name and version. Different installers therefore shared one identity, and Windows treated a new installer as reconfiguring the one already installed.Fix
major.minor.<windowsBuildNumber>, e.g.6.9.27927. Windows Installer only compares these three numbers.git rev-list --count HEADaswindowsBuildNumber. Their build checkouts now fetch the full history so the count is correct.0.PCGen 6.09.08.RC1) is kept in the installer description, so builds can still be matched.Testing
6.9.0, and with the commit count it gives6.9.27927. The jpackage tasks still configure.Notes
masterhistory (e.g. a squashed force-push) could lower the commit count.