summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'Tools')
-rw-r--r--Tools/msi/msi.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/Tools/msi/msi.py b/Tools/msi/msi.py
index 42cb3fd..dffd02e 100644
--- a/Tools/msi/msi.py
+++ b/Tools/msi/msi.py
@@ -823,15 +823,13 @@ def extract_msvcr71():
r"Software\Microsoft\VisualStudio\7.1\Setup\VS")
dir = _winreg.QueryValueEx(k, "MSMDir")[0]
_winreg.CloseKey(k)
- files = glob.glob1(dir, "*VCR71*.dll")
+ files = glob.glob1(dir, "*CRT71*")
assert len(files) > 0, (dir, files)
# Extract msvcr71.dll
- #m = msilib.MakeMerge2()
- #m.OpenModule(file, 0)
- #m.ExtractFiles(".")
- #m.CloseModule()
- for file in files:
- shutil.copy(os.path.join(dir, file), '.')
+ m = msilib.MakeMerge2()
+ m.OpenModule(file, 0)
+ m.ExtractFiles(".")
+ m.CloseModule()
# Find the version/language of msvcr71.dll
installer = msilib.MakeInstaller()
return installer.FileVersion("msvcr71.dll", 0), \