From ab0b29bd81b6aef489492bdeda4e745661550fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 13 Sep 2008 08:11:57 +0000 Subject: Issue #3833: Use a different upgrade code for Win64 installers. --- Misc/NEWS | 2 ++ Tools/msi/msi.py | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/Misc/NEWS b/Misc/NEWS index 2d4b21b..f83a0dd 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -181,6 +181,8 @@ Tests Build ----- +- Issue #3833: Use a different upgrade code for Win64 installers. + - Issue #2271: Set SecureCustomProperties so that installation will properly use the TARGETDIR even for unprivileged users. diff --git a/Tools/msi/msi.py b/Tools/msi/msi.py index 22987b1..dff0e2d 100644 --- a/Tools/msi/msi.py +++ b/Tools/msi/msi.py @@ -64,8 +64,11 @@ current_version = "%s.%d" % (short_version, FIELD3) # This should never change. The UpgradeCode of this package can be # used in the Upgrade table of future packages to make the future # package replace this one. See "UpgradeCode Property". +# upgrade_code gets set to upgrade_code_64 when we have determined +# that the target is Win64. upgrade_code_snapshot='{92A24481-3ECB-40FC-8836-04B7966EC0D5}' upgrade_code='{65E6DE48-A358-434D-AA4F-4AF72DB4718F}' +upgrade_code_64='{6A965A0C-6EE6-4E3A-9983-3263F56311EC}' if snapshot: current_version = "%s.%s.%s" % (major, minor, int(time.time()/3600/24)) @@ -167,6 +170,8 @@ dll_path = os.path.join(srcdir, PCBUILD, dll_file) msilib.set_arch_from_file(dll_path) if msilib.pe_type(dll_path) != msilib.pe_type("msisupport.dll"): raise SystemError, "msisupport.dll for incorrect architecture" +if msilib.Win64: + upgrade_code = upgrade_code_64 if testpackage: ext = 'px' -- cgit v0.12