This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Knowledge Base
- :
- Build Only The InstallShield Project When Integrated With Visual Studio
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
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 StudioSynopsis
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>
- To run the command, open an administrative command prompt from windows.
- 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.
- Copy and paste the above cmd in the command prompt window to run it.
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 LineMicrosoft Build Engine (MSBuild)
No ratings