Index: scripts/config.bat =================================================================== diff -u -N -r879a575c6688f971eb22fdfbefdd76aee4b69fac -r03340b954ead8138d669ee4f8df7124dc84c5612 --- scripts/config.bat (.../config.bat) (revision 879a575c6688f971eb22fdfbefdd76aee4b69fac) +++ scripts/config.bat (.../config.bat) (revision 03340b954ead8138d669ee4f8df7124dc84c5612) @@ -5,10 +5,16 @@ SET CurrentDir=%CD% SET ScriptDir=%CurrentDir% +SET CHRootDir=%CurrentDir%\.. SET OutputDir=%CurrentDir%\out SET TmpDir=%CurrentDir%\tmp -SET MainProjectDir=%TmpDir%\copyhandler +SET VSInstallDirX64=%ProgramFiles%\Microsoft Visual Studio 9.0 + +rem NOTE: Strange construct here because of strange behaviour of %ProgramFiles(x86)% which loses last parenthesis otherwise +if "%ProgramFiles(x86)%" == "" SET VSInstallDirX86=%ProgramFiles%\Microsoft Visual Studio 9.0 +if NOT "%ProgramFiles(x86)%" == "" SET VSInstallDirX86=%ProgramFiles(x86)%\Microsoft Visual Studio 9.0 + if not exist "%ScriptDir%\config.bat" ( echo ERROR: This script needs to be called from its directory. exit /b 1