Use VSWhere to locate Visual Studio and redistributables

This commit is contained in:
Cameron Gutman
2019-09-29 14:52:06 -07:00
parent 96ff51d598
commit a42328d971
3 changed files with 13 additions and 7 deletions

View File

@@ -86,7 +86,7 @@
InstallCondition="VCRedist_Present = 2"
Vital="yes"
Compressed="yes"
SourceFile="$(env.VCREDIST_INSTALLER)"
SourceFile="$(env.VCToolsRedistDir)vcredist_$(env.ARCH).exe"
InstallCommand="/install /quiet /norestart">
<!-- Newer version installed is fine -->
<ExitCode Value="1638" Behavior="success" />