Skip to content

Commit e6f4d7a

Browse files
committed
Fix detection of VS 2013 in install script.
1 parent 4a4e1dd commit e6f4d7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install_script.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ if not ERRORLEVEL 1 (
9393
set MSVC_VER=14
9494
goto MSVCVarsDone
9595
)
96-
reg.exe query "HKLM\Software%WOWNODE%\Microsoft\VisualStudio\13.0" /v "InstallDir" >nul 2>&1
96+
reg.exe query "HKLM\Software%WOWNODE%\Microsoft\VisualStudio\12.0" /v "InstallDir" >nul 2>&1
9797
if not ERRORLEVEL 1 (
9898
echo Visual Studio 2013 installation detected...
99-
for /f "skip=2 tokens=2,*" %%a in ('reg.exe query "HKLM\Software%WOWNODE%\Microsoft\VisualStudio\13.0" /v "InstallDir"') do (set VSINSTALLDIR=%%b)
99+
for /f "skip=2 tokens=2,*" %%a in ('reg.exe query "HKLM\Software%WOWNODE%\Microsoft\VisualStudio\12.0" /v "InstallDir"') do (set VSINSTALLDIR=%%b)
100100
call "!VSINSTALLDIR!\VC\bin%MSVCVARSDIR%\vcvars%SYSARCH%.bat" >nul 2>&1
101-
set MSVC_VER=13
101+
set MSVC_VER=12
102102
goto MSVCVarsDone
103103
)
104104
echo Error: Could not find valid Visual Studio installation!

0 commit comments

Comments
 (0)