0

I have created InstallShield Basic MSI project from Visual Studio (IS 2012 Spring, VS 2010). My InstallShield project having 2 product configurations and each configuration having one release. Product Configuration 1 Release 1 Product Configuration 2 Release 2

For building project in VS IDE, I need to set the corresponding product configuration as 'Default Product Configuration' and build. This is working fine. The Default configuration release is getting build.

But, how can we achieve this in MSBuild command line?

I need to build both configuration separately using MSBuild command line (without changing Default configuration through IDE).

Could anyone please share the proper way to build IS project in MSBuild command line?

Thanks, Saravanan

1
  • Any update for this issue? Could you get useful information from answer? If not, you can add comment let us to know the latest status for this question, we will follow it up. Commented May 22, 2017 at 4:36

1 Answer 1

1

how can we achieve this in MSBuild command line?

You can use Properties in the MSBuild command line:

msbuild test.sln /t:project /p:Configuration="Release" /p:Platform="x86" /p:BuildProjectReferences=false

You can also build multiple projects at once:

msbuild test.sln /t:project;project2 /p:Configuration="Release" /p:Platform="x86" /p:BuildProjectReferences=false

Note:

  • what is assigned to /t is the project name in the solution, it can be different from the project file name.
  • One important note: if your project has a '.' in the name, you'll need to replace it with a '_' when specifying it with /t
Sign up to request clarification or add additional context in comments.

1 Comment

It is fine for VS project. But for InstallShield project with different "Product Configuration" bound with different arguments. I am not sure, but now trying the below link helpnet.installshield.com/installshield22helplib/helplibrary/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.