# HG changeset patch # User Gregory Szorc # Date 2020-01-25 04:27:59 # Node ID 62111bc5ff87f9eac401644bbd0514665eb0745d # Parent 2251b6cde17074e1f875a59ec88bf8d56ff53ecd wix: use original version string for MSI filename Version string normalization is mostly to placate MSI requirements. I think it makes sense to use the original version string in filenames. Since we can have distinct versions normalizing to the same MSI version string, this will allow us to distinguish between different actual version strings based on the filename. Differential Revision: https://phab.mercurial-scm.org/D8005 diff --git a/contrib/packaging/hgpackaging/wix.py b/contrib/packaging/hgpackaging/wix.py --- a/contrib/packaging/hgpackaging/wix.py +++ b/contrib/packaging/hgpackaging/wix.py @@ -475,7 +475,7 @@ def build_installer( run_candle(wix_path, build_dir, source, source_build_rel, defines=defines) msi_path = ( - source_dir / 'dist' / ('%s-%s-%s.msi' % (msi_name, version, arch)) + source_dir / 'dist' / ('%s-%s-%s.msi' % (msi_name, orig_version, arch)) ) args = [