I want to build a setup project using a bat file and want to generate msi. I tried building using MSBuild.exe like below
@echo off
call %windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe C:\Setup1\Setup1.sln
But it seems MSBUILD doesn’t support setup projects. Is there any other idea to build the setup project using bat file?
Devnev is what you’re after.
The following command builds setup project Setup1 in C:\Setup1\Setup1.sln in release configuration:
Or you can build it directly: