Search code examples
c#visual-studiomsbuildinstallshield

Using MSBuild for Build solution include InstallShield ProjecT


I'm doing a project in C #. In my solution I have an installsheld project that works very well when I compile directly from visual studio, I have a setup that is generated and is ready to be installed.

I would like for various reasons to be able to compile with command-line solution using MSBuild. Everything works but my setup does not generate correctly despite any errors.

Below, the log when I compile the installshield project from visual studio:

Log InstallShield compile from visual studio

With MSBuild :

Log InstallShield compile from command line using MSBuild

We notice that during the step Building File table, from visual studio we have the dependency of component 'RegieCiel.Primary_output', so we are good. Since MSbuild, nothing is added ....

So what happens is that during the installation of the Setup, it lacks the dependencies.

I first thought of a build order but it would work in both cases?

What do you think ?


Solution

  • I thank you for your answer and actually I think putting up does not place a solution "static" would solve the problem.

    However after a long search I finally found!

    In my solution I had a package named "SlowCheetah" to manage several configuration files. By uninstalling it, restart MSbuild, my Setup works perfectly!

    Thank you for your help !