This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jaraco
Recipients jaraco, tarek
Date 2009-06-10.21:21:33
SpamBayes Score 0.0010038201
Marked as misclassified No
Message-id <1244668895.59.0.397617770462.issue6258@psf.upfronthosting.co.za>
In-reply-to
Content
Based on the MSDN article and what I read in a blog entry
(http://blogs.msdn.com/heaths/archive/2005/10/24/windows-installer-on-64-bit-platforms.aspx),
I thought that the enclosed patch might work around the issue... and
while it does set the template property to x64, the undesirable behavior
persists.

Index: Lib/msilib/__init__.py
===================================================================
--- Lib/msilib/__init__.py      (revision 73295)
+++ Lib/msilib/__init__.py      (working copy)
@@ -3,8 +3,11 @@
 # Licensed to PSF under a Contributor Agreement.
 from _msi import *
 import os, string, re
+import sys

-Win64=0
+Intel64=0
+AMD64 = 'AMD64' in sys.version
+Win64 = Intel64 or AMD64

 # Partially taken from Wine
 datasizemask=      0x00ff
@@ -145,8 +148,10 @@
     si.SetProperty(PID_TITLE, "Installation Database")
     si.SetProperty(PID_SUBJECT, ProductName)
     si.SetProperty(PID_AUTHOR, Manufacturer)
-    if Win64:
+    if Intel64:
         si.SetProperty(PID_TEMPLATE, "Intel64;1033")
+    elif AMD64:
+        si.SetProperty(PID_TEMPLATE, "x64;1033")
     else:
         si.SetProperty(PID_TEMPLATE, "Intel;1033")
     si.SetProperty(PID_REVNUMBER, gen_uuid())
History
Date User Action Args
2009-06-10 21:21:35jaracosetrecipients: + jaraco, tarek
2009-06-10 21:21:35jaracosetmessageid: <1244668895.59.0.397617770462.issue6258@psf.upfronthosting.co.za>
2009-06-10 21:21:34jaracolinkissue6258 messages
2009-06-10 21:21:33jaracocreate