echo ======Set realted Dirs and parameters======
set SVNdir=C:\Program Files\Subversion\bin
set SourceCodePath=E:\SourceCode
set Innocomdir=C:\Program Files\Inno Setup 5
set path=%path%;C:\Program Files\Microsoft Visual Studio 8\VC\bin;
call vcvars32.bat
set VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
set SolutionConfig=release
set BuildType=/rebuild
set CommandOption1=update
set CommandOption2=log
echo ======Update source code to the latest======
taskkill /f /im TSVNCache.exe
call "%SVNdir%\svn.exe" %CommandOption1% %SourceCodePath%
call "%Workdir%\svn.exe" %CommandOption2% -q %SourceCodePath% >VersionInfo.txt
echo ======Create foler to accomodate build log files======
md %cd%\AutoBuildLogs
echo ======Cleanning up log files======
del /Q %cd%\AutoBuildLogs\timestart.txt
del /Q %cd%\AutoBuildLogs\timeend.txt
del /Q %cd%\AutoBuildLogs\CommonBuild.log
echo ======Processing all build======
echo %date% %time% > %cd%\AutoBuildLogs\timestart.txt"
call "%VSINSTALLDIR%\DEVENV.COM" %BuildType% %SolutionConfig% "%SourceCodePath%\Common.sln" /out "%cd%\AutoBuildLogs\CommonBuild.log"
rem "you can expand any more solutions which are ready to build"
echo %date% %time% > %cd%\AutoBuildLogs\timeend.txt"
echo ======Create installer======
call "%Innocomdir%\compil32" /cc "E:\sourcecode\Build.iss"
rem "you can apply any other installer tool to perform. installer creation"