path: root/odk
diff options
authorArmin Le Grand <>2016-01-22 16:57:17 +0100
committerThorsten Behrens <>2016-01-23 00:11:47 +0000
commit7d69efd06dd1a1fee28c117e5ab79e557056f82c (patch)
treec46a7b1a3706b7d7e4058a2b5c41bfa19318b1ee /odk
parent3fc292f7b32f30b98dad208eb03e086b927d38a2 (diff)
Win build: Set default script engine for cscript
When Windows build is executed, cscript is used to execute JavaScript files. This uses cscript from the system to execute *.js files. cscript is not only capable of executing JavaScript, but also VBScript. Which engine to run is usually determined by the file extension, except when any installed program has added a registered association to the used file type. In that case, the execution of cscript and thus the build fails. This can be prevented by directly defining the script engine when calling cscript, using the /e:javascript parameter for *.js targets. Change-Id: If717b8ae5335acbe4f11c269d3c98a7247a135e6 Reviewed-on: Reviewed-by: Thorsten Behrens <> Tested-by: Thorsten Behrens <>
Diffstat (limited to 'odk')
1 files changed, 1 insertions, 1 deletions
diff --git a/odk/config/setsdkenv_windows.bat b/odk/config/setsdkenv_windows.bat
index a7b007926953..e6d1335ad77b 100755
--- a/odk/config/setsdkenv_windows.bat
+++ b/odk/config/setsdkenv_windows.bat
@@ -57,7 +57,7 @@ if not exist "%OO_USER_SDKENV_SCRIPT%". (
echo ******************************************************************
- cscript //I //Nologo "%SDK_DIR%\cfgWin.js"
+ cscript //e:javascript //I //Nologo "%SDK_DIR%\cfgWin.js"
goto setenv