diff --git a/Tools/msi/make_zip.proj b/Tools/msi/make_zip.proj
index f78e6ffa28f..b3588b7a0ba 100644
--- a/Tools/msi/make_zip.proj
+++ b/Tools/msi/make_zip.proj
@@ -17,15 +17,12 @@
rmdir /q/s "$(IntermediateOutputPath)\zip_$(ArchName)"
"$(PythonExe)" "$(MSBuildThisFileDirectory)\make_zip.py"
$(Arguments) -e -o "$(TargetPath)" -t "$(IntermediateOutputPath)\zip_$(ArchName)" -a $(ArchName)
- set DOC_FILENAME=python$(PythonVersion).chm
-set VCREDIST_PATH=$(VS140COMNTOOLS)\..\..\VC\redist\$(Platform)\Microsoft.VC140.CRT
+ set DOC_FILENAME=python$(PythonVersion).chm
+ $(Environment)%0D%0Aset VCREDIST_PATH=$(CRTRedist)\$(Platform)
-
+
diff --git a/Tools/nuget/make_pkg.proj b/Tools/nuget/make_pkg.proj
index d7e932cee54..464ef0456af 100644
--- a/Tools/nuget/make_pkg.proj
+++ b/Tools/nuget/make_pkg.proj
@@ -34,9 +34,8 @@
$(NugetArguments) -Version "$(NuspecVersion)"
$(NugetArguments) -NoPackageAnalysis -NonInteractive
- setlocal
-set DOC_FILENAME=python$(PythonVersion).chm
-set VCREDIST_PATH=$(VS140COMNTOOLS)\..\..\VC\redist\$(Platform)\Microsoft.VC140.CRT
+ set DOC_FILENAME=python$(PythonVersion).chm
+ $(Environment)%0D%0Aset VCREDIST_PATH=$(CRTRedist)\$(Platform)
@@ -45,8 +44,7 @@ set VCREDIST_PATH=$(VS140COMNTOOLS)\..\..\VC\redist\$(Platform)\Microsoft.VC140.
-
+