Skip to content

Commit

Permalink
Output msbuild.txt to script dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibras committed Oct 24, 2017
1 parent 052a052 commit fd7165f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions install_script.bat
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ goto Terminate

:MSVCVarsDone
REM Get the location of the current msbuild
powershell.exe -Command ((Get-Command msbuild.exe)[0].Path ^| Split-Path -parent) > msbuild.txt
findstr /C:"Get-Command" msbuild.txt >nul 2>&1
powershell.exe -Command ((Get-Command msbuild.exe)[0].Path ^| Split-Path -parent) > "%SCRIPTDIR%\msbuild.txt"
findstr /C:"Get-Command" "%SCRIPTDIR%\msbuild.txt" >nul 2>&1
if not ERRORLEVEL 1 (
echo Error: Failed to get location of msbuild!
del /F /Q msbuild.txt >nul 2>&1
del /F /Q "%SCRIPTDIR%\msbuild.txt" >nul 2>&1
goto Terminate
)
set /p MSBUILDDIR=<msbuild.txt
del /F /Q msbuild.txt >nul 2>&1
set /p MSBUILDDIR=<"%SCRIPTDIR%\msbuild.txt"
del /F /Q "%SCRIPTDIR%\msbuild.txt" >nul 2>&1
if "%MSVC_VER%"=="15" (
set VCTargetsPath="..\..\..\Common7\IDE\VC\VCTargets"
) else (
Expand Down

0 comments on commit fd7165f

Please sign in to comment.