summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-06-12 17:28:31 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2009-06-12 17:28:31 (GMT)
commit2dcd7a0d5287d39e6ab5f6782a0fa1d968a4a78c (patch)
tree0e81b001083316e7e608e1425d26f3a49c18de0a /Lib/distutils/command
parent2c0cdca56447d33e714a010459ee4318fff89c66 (diff)
downloadcpython-2dcd7a0d5287d39e6ab5f6782a0fa1d968a4a78c.zip
cpython-2dcd7a0d5287d39e6ab5f6782a0fa1d968a4a78c.tar.gz
cpython-2dcd7a0d5287d39e6ab5f6782a0fa1d968a4a78c.tar.bz2
Support AMD64 in msilib. Set Win64 on reglocator.
Fixes #6258.
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/bdist_msi.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/distutils/command/bdist_msi.py b/Lib/distutils/command/bdist_msi.py
index 52e193e..d69c4b6 100644
--- a/Lib/distutils/command/bdist_msi.py
+++ b/Lib/distutils/command/bdist_msi.py
@@ -342,9 +342,14 @@ class bdist_msi (Command):
exe_action = "PythonExe" + ver
target_dir_prop = "TARGETDIR" + ver
exe_prop = "PYTHON" + ver
+ if msilib.Win64:
+ # type: msidbLocatorTypeRawValue + msidbLocatorType64bit
+ Type = 2+16
+ else:
+ Type = 2
add_data(self.db, "RegLocator",
- [(machine_reg, 2, install_path, None, 2),
- (user_reg, 1, install_path, None, 2)])
+ [(machine_reg, 2, install_path, None, Type),
+ (user_reg, 1, install_path, None, Type)])
add_data(self.db, "AppSearch",
[(machine_prop, machine_reg),
(user_prop, user_reg)])