-cd %2
+REM %1=buildtype %2=<Module Sources Ex crea bbtk creaMaracasVisu ...>
+
+cd %2Bin
call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%1
-FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%1 /t:Install
-FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%1 /t:Package
+FOR /R %%a IN (*.sln) DO msbuild /p:Configuration=%1 INSTALL.vcproj
+FOR /R %%a IN (*.sln) DO msbuild /p:Configuration=%1 PACKAGE.vcproj
+copy %2*.exe ../Result_Installers/
cd ..