Skip to content

Commit e3c8973

Browse files
committed
Output msbuild.txt to script dir.
1 parent 000d47f commit e3c8973

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

install_script.bat

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ goto Terminate
106106

107107
:MSVCVarsDone
108108
REM Get the location of the current msbuild
109-
powershell.exe -Command ((Get-Command msbuild.exe)[0].Path ^| Split-Path -parent) > msbuild.txt
110-
findstr /C:"Get-Command" msbuild.txt >nul 2>&1
109+
powershell.exe -Command ((Get-Command msbuild.exe)[0].Path ^| Split-Path -parent) > "%SCRIPTDIR%\msbuild.txt"
110+
findstr /C:"Get-Command" "%SCRIPTDIR%\msbuild.txt" >nul 2>&1
111111
if not ERRORLEVEL 1 (
112112
echo Error: Failed to get location of msbuild!
113-
del /F /Q msbuild.txt >nul 2>&1
113+
del /F /Q "%SCRIPTDIR%\msbuild.txt" >nul 2>&1
114114
goto Terminate
115115
)
116-
set /p MSBUILDDIR=<msbuild.txt
117-
del /F /Q msbuild.txt >nul 2>&1
116+
set /p MSBUILDDIR=<"%SCRIPTDIR%\msbuild.txt"
117+
del /F /Q "%SCRIPTDIR%\msbuild.txt" >nul 2>&1
118118
if "%MSVC_VER%"=="15" (
119119
set VCTargetsPath="..\..\..\Common7\IDE\VC\VCTargets"
120120
) else (

0 commit comments

Comments
 (0)