diff --git a/build-win32.bat b/build-win32.bat index db3a160590c1..b7f99a5f6909 100644 --- a/build-win32.bat +++ b/build-win32.bat @@ -45,22 +45,6 @@ if not exist %CC_TEST_PATH% ( goto ERROR ) -echo./* -echo.* Install Cocos2d-win32 application wizard... -echo.*/ -echo. - -set SCRIPT_LOG=InstallWizardLog.txt -set SCRIPT_DIR=.\template\msvc\ - -if exist %SCRIPT_LOG% del /Q %SCRIPT_LOG% -cscript "%SCRIPT_DIR%InstallWizardForVC2008Express.js" /quiet -cscript "%SCRIPT_DIR%InstallWizardForVC2010Express.js" /quiet -cscript "%SCRIPT_DIR%InstallWizardForVS2008.js" /quiet -cscript "%SCRIPT_DIR%InstallWizardForVS2010.js" /quiet -if exist %SCRIPT_LOG% more %SCRIPT_LOG% -if exist %SCRIPT_LOG% del /Q %SCRIPT_LOG% - echo./* echo.* Run cocos2d-win32 tests.exe and view Cocos2d-x Application Wizard for Visual Studio User Guide. echo.*/ diff --git a/install-templates-msvc.bat b/install-templates-msvc.bat new file mode 100644 index 000000000000..a603e4fa2c19 --- /dev/null +++ b/install-templates-msvc.bat @@ -0,0 +1,17 @@ + +echo./* +echo.* Install Cocos2d-win32 application wizard... +echo.*/ +echo. + +set SCRIPT_LOG=InstallWizardLog.txt +set SCRIPT_DIR=.\template\msvc\ + +if exist %SCRIPT_LOG% del /Q %SCRIPT_LOG% +cscript "%SCRIPT_DIR%InstallWizardForVC2008Express.js" /quiet +cscript "%SCRIPT_DIR%InstallWizardForVC2010Express.js" /quiet +cscript "%SCRIPT_DIR%InstallWizardForVS2008.js" /quiet +cscript "%SCRIPT_DIR%InstallWizardForVS2010.js" /quiet +if exist %SCRIPT_LOG% more %SCRIPT_LOG% +if exist %SCRIPT_LOG% del /Q %SCRIPT_LOG% +