rem >>> run this batch file to update BinFolder.wxs only when the content of the setup changes cls @echo off set build=C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe set harvest="%WIX%bin\heat.exe" echo cleaning and building project... rd /s /q ..\..\bin\Release > nul 2>&1 %build% ..\..\Dam.sln /p:Configuration=Release;Platform=x86 >BuildHarvest.log echo/ echo cleaning up bin folder... rd /s /q ..\..\bin\Release\TestFiles > nul 2>&1 rd /s /q ..\..\bin\Release\TestData > nul 2>&1 rd /s /q ..\..\bin\Release\DikeData > nul 2>&1 rd /s /q ..\..\bin\Release\TestDataSoilSurfaceProfileTest > nul 2>&1 rd /s /q ..\..\bin\Release\x64 > nul 2>&1 rd /s /q ..\..\bin\Release\DamWtiBenchmarkTestReports > nul 2>&1 rd /s /q ..\..\bin\Release\cs > nul 2>&1 rd /s /q ..\..\bin\Release\de > nul 2>&1 rd /s /q ..\..\bin\Release\de-DE > nul 2>&1 rd /s /q ..\..\bin\Release\el > nul 2>&1 rd /s /q ..\..\bin\Release\en-US > nul 2>&1 rd /s /q ..\..\bin\Release\it > nul 2>&1 rd /s /q ..\..\bin\Release\it-IT > nul 2>&1 rd /s /q ..\..\bin\Release\ja-JP > nul 2>&1 rd /s /q ..\..\bin\Release\lt > nul 2>&1 rd /s /q ..\..\bin\Release\pt > nul 2>&1 rd /s /q ..\..\bin\Release\pt-BR > nul 2>&1 rd /s /q ..\..\bin\Release\ro > nul 2>&1 rd /s /q ..\..\bin\Release\th > nul 2>&1 rd /s /q ..\..\bin\Release\vi-VN > nul 2>&1 rd /s /q ..\..\bin\Release\zh-CNt > nul 2>&1 rd /s /q ..\..\bin\Release\zh-MO > nul 2>&1 del /q ..\..\bin\Release\*.pdb > nul 2>&1 del /q ..\..\bin\Release\*test*.dll > nul 2>&1 del /q ..\..\bin\Release\*test*.exe > nul 2>&1 del /q ..\..\bin\Release\*test*.config > nul 2>&1 del /q ..\..\bin\Release\Rhino.Mocks.* > nul 2>&1 del /q ..\..\bin\Release\nunit.*.* > nul 2>&1 del /q ..\..\bin\Release\KernelComparisonRunner.exe > nul 2>&1 del /q ..\..\bin\Release\NetTopologySuite.IO.MsSqlSpatial.dll > nul 2>&1 del /q ..\..\bin\Release\NetTopologySuite.IO.PostGis.dll > nul 2>&1 del /q ..\..\bin\Release\*.dll.config > nul 2>&1 del /q ..\..\bin\release\KellermanSoftware*.* > nul 2>&1 del /q ..\..\bin\release\*vshost.exe > nul 2>&1 echo/ echo harvesting project to create BinFolder.wxs, please commit this file if there are significant changes in the fileset ! %harvest% dir ..\..\bin\release -cg ProductComponents -dr INSTALLFOLDER -var var.BinFolder -gg -sfrag -sreg -srd -o BinFolder.wxs >>BuildHarvest.log echo/ echo building setup... rd /s /q bin %build% Deltares.Dam.Setup.wixproj /p:Configuration=Release;Platform=x86;BuildProjectReferences=false >BuildSetup.log