cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Build Only The InstallShield Project When Integrated With Visual Studio

Build Only The InstallShield Project When Integrated With Visual Studio

Summary

Build Only The InstallShield Project When Integrated With Visual Studio

Synopsis

If you are looking to use msbuild to build only the Installshield Project in your Visual Studio Solution, this can be done with some simple parameters.

C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe <SOLUTION>.sln /t:<PROJECT>
  1. To run the command, open an administrative command prompt from windows.
  2. This can be done from the start menu, and searching for cmd. You may right click on the Command Prompt Icon to Run as Administrator.
  3. Copy and paste the above cmd in the command prompt window to run it.
This is only if you are attempting to publish a project integrated with a Visual Studio solution.
The command will require Microsoft .Net installed.


Discussion

Attached is a sample VisualStudio2017 solution.

The following cmd (when run from folder containing .sln) will build just the Setup1 Installshield project included in the Solution:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe Setup1.sln /t:Setup1

You can note that the Bin directory for Classlibrary1 remains empty after the build. This indicates it was not built.

You will require Visual Studio 2017 in order to view the Visual Studio Solution attached.

Additional Information

Using MSBuild to Build a Release from the Command Line

Microsoft Build Engine (MSBuild)
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Jul 09, 2018 10:17 PM
Updated by: