Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f27f8a1

Browse files
committed
Merged revisions 66439 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r66439 | martin.v.loewis | 2008-09-13 10:11:57 +0200 (Sa, 13 Sep 2008) | 1 line Issue #3833: Use a different upgrade code for Win64 installers. ........
1 parent 4ab674a commit f27f8a1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Tools/msi/msi.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@
6464
# This should never change. The UpgradeCode of this package can be
6565
# used in the Upgrade table of future packages to make the future
6666
# package replace this one. See "UpgradeCode Property".
67+
# upgrade_code gets set to upgrade_code_64 when we have determined
68+
# that the target is Win64.
6769
upgrade_code_snapshot='{92A24481-3ECB-40FC-8836-04B7966EC0D5}'
6870
upgrade_code='{65E6DE48-A358-434D-AA4F-4AF72DB4718F}'
71+
upgrade_code_64='{6A965A0C-6EE6-4E3A-9983-3263F56311EC}'
6972

7073
if snapshot:
7174
current_version = "%s.%s.%s" % (major, minor, int(time.time()/3600/24))
@@ -167,6 +170,8 @@ def build_mingw_lib(lib_file, def_file, dll_file, mingw_lib):
167170
msilib.set_arch_from_file(dll_path)
168171
if msilib.pe_type(dll_path) != msilib.pe_type("msisupport.dll"):
169172
raise SystemError("msisupport.dll for incorrect architecture")
173+
if msilib.Win64:
174+
upgrade_code = upgrade_code_64
170175

171176
if testpackage:
172177
ext = 'px'

0 commit comments

Comments
 (0)