File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 72
72
!define VCRedistx86RegKey " SOFTWARE\Classes\Installer\Products\1926E8D15D0BCE53481466615F760A7F"
73
73
!define VCRedistx64RegKey " SOFTWARE\Classes\Installer\Products\1D5E3C0FEDA1E123187686FED06E995A"
74
74
75
+ !define VSWhere " ${ProgramFiles}\Microsoft Visual Studio\Installer\vswhere.exe"
76
+
75
77
; ----------------
76
78
; Publishing Details
77
79
!define DPublisher " D Language Foundation"
@@ -384,6 +386,17 @@ FunctionEnd
384
386
Function DetectVC
385
387
ClearErrors
386
388
389
+ IfFileExists " $[VSWhere}" 0 no_vswhere
390
+ nsExec::ExecToStack ' "${VSWhere}" -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
+
387
400
Call DetectVS2019_InstallationFolder
388
401
StrCpy $1 " VC2019"
389
402
StrCmp $0 " " not_vc2019 vs2019
You can’t perform that action at this time.
0 commit comments