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

Skip to content

Commit ee7498e

Browse files
committed
Merged revisions 61116 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r61116 | martin.v.loewis | 2008-02-28 23:20:50 +0100 (Do, 28 Feb 2008) | 1 line Locate VS installation dir from environment, so that it works with the express edition. ........
1 parent 36d1f8e commit ee7498e

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

Tools/msi/msi.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -837,17 +837,11 @@ def extract_msvcr71():
837837
installer.FileVersion("msvcr71.dll", 1)
838838

839839
def extract_msvcr90():
840-
import _winreg
841-
# Find the location of the merge modules
842-
k = _winreg.OpenKey(
843-
_winreg.HKEY_LOCAL_MACHINE,
844-
r"Software\Microsoft\VisualStudio\9.0\Setup\VS")
845-
prod_dir = _winreg.QueryValueEx(k, "ProductDir")[0]
846-
_winreg.CloseKey(k)
840+
# Find the redistributable files
841+
dir = os.path.join(os.environ['VS90COMNTOOLS'], r"..\..\VC\redist\x86\Microsoft.VC90.CRT")
847842

848843
result = []
849844
installer = msilib.MakeInstaller()
850-
dir = os.path.join(prod_dir, r'VC\redist\x86\Microsoft.VC90.CRT')
851845
# omit msvcm90 and msvcp90, as they aren't really needed
852846
files = ["Microsoft.VC90.CRT.manifest", "msvcr90.dll"]
853847
for f in files:

0 commit comments

Comments
 (0)