We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08fc8d8 commit 735e3a3Copy full SHA for 735e3a3
windows/d2-installer.nsi
@@ -384,6 +384,19 @@ FunctionEnd
384
Function DetectVC
385
ClearErrors
386
387
+ StrCpy $0 "$PROGRAMFILES\Microsoft Visual Studio\Installer\vswhere.exe"
388
+
389
+ IfFileExists "$0" 0 no_vswhere
390
+ nsExec::ExecToStack '"$0" -products * -prerelease -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath'
391
+ Pop $1 ; stdout: path
392
+ Pop $0 ; result code
393
+ StrCmp $0 0 no_vswhere
394
+ StrCmp $1 "" no_vswhere
395
+ StrCpy $VCVer "VC2017+" ; value not used, but only checked if empty
396
+ StrCpy $VCPath $1
397
+ Goto done
398
+ no_vswhere:
399
400
Call DetectVS2019_InstallationFolder
401
StrCpy $1 "VC2019"
402
StrCmp $0 "" not_vc2019 vs2019
0 commit comments