[Python-checkins] r61116 - python/trunk/Tools/msi/msi.py
martin.v.loewis
python-checkins at python.org
Thu Feb 28 23:20:51 CET 2008
Author: martin.v.loewis
Date: Thu Feb 28 23:20:50 2008
New Revision: 61116
Modified:
python/trunk/Tools/msi/msi.py
Log:
Locate VS installation dir from environment, so that it works with the express edition.
Modified: python/trunk/Tools/msi/msi.py
==============================================================================
--- python/trunk/Tools/msi/msi.py (original)
+++ python/trunk/Tools/msi/msi.py Thu Feb 28 23:20:50 2008
@@ -836,17 +836,11 @@
installer.FileVersion("msvcr71.dll", 1)
def extract_msvcr90():
- import _winreg
- # Find the location of the merge modules
- k = _winreg.OpenKey(
- _winreg.HKEY_LOCAL_MACHINE,
- r"Software\Microsoft\VisualStudio9円.0\Setup\VS")
- prod_dir = _winreg.QueryValueEx(k, "ProductDir")[0]
- _winreg.CloseKey(k)
+ # Find the redistributable files
+ dir = os.path.join(os.environ['VS90COMNTOOLS'], r"..\..\VC\redist\x86\Microsoft.VC90.CRT")
result = []
installer = msilib.MakeInstaller()
- dir = os.path.join(prod_dir, r'VC\redist\x86\Microsoft.VC90.CRT')
# omit msvcm90 and msvcp90, as they aren't really needed
files = ["Microsoft.VC90.CRT.manifest", "msvcr90.dll"]
for f in files:
More information about the Python-checkins
mailing list