Skip to content

Commit e1d9dca

Browse files
committed
Use AMD64 version of CRT in just-for-me installations for Win64 installers.
1 parent 175d007 commit e1d9dca

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Tools/msi/msi.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,11 @@ def add_features(db):
843843

844844
def extract_msvcr90():
845845
# Find the redistributable files
846-
dir = os.path.join(os.environ['VS90COMNTOOLS'], r"..\..\VC\redist\x86\Microsoft.VC90.CRT")
846+
if msilib.Win64:
847+
arch = "amd64"
848+
else:
849+
arch = "x86"
850+
dir = os.path.join(os.environ['VS90COMNTOOLS'], r"..\..\VC\redist\%s\Microsoft.VC90.CRT" % arch)
847851

848852
result = []
849853
installer = msilib.MakeInstaller()

0 commit comments

Comments
 (0)