Search code examples
.netvisual-studio-2013installshield-le

Installshield limited edition asking for .Net framework files and program not running without visual studio


I have a solution in VS 2013 community edition, an I recently added a setup project with Installshield limited edition.

When I re-build the solution (On release x64 mode) the installshield project warns me about the following files:

Warning -6245: One or more of the project's components contain .NET properties that require the .NET Framework.  It is recommended that the release include the .NET Framework. 16  ISEXP : warning : -6245: One or more of the project's components contain .NET properties that require the .NET Framework.  It is recommended that the release include the .NET Framework.

Warning -6248: Could not find dependent file Microsoft.ServiceBus, or one of its dependencies of component PLATOS.Primary_output    18  ISEXP : warning : -6248: Could not find dependent file Microsoft.ServiceBus, or one of its dependencies of component PLATOS.Primary_output

Warning -6248: Could not find dependent file Microsoft.VisualStudio.CodeMarkers.dll, or one of its dependencies of component PLATOS.Primary_output  19  ISEXP : warning : -6248: Could not find dependent file Microsoft.VisualStudio.CodeMarkers.dll, or one of its dependencies of component PLATOS.Primary_output

Warning -6248: Could not find dependent file Newtonsoft.Json, or one of its dependencies of component PLATOS.Primary_output 20  ISEXP : warning : -6248: Could not find dependent file Newtonsoft.Json, or one of its dependencies of component PLATOS.Primary_output

Warning -6248: Could not find dependent file System.Data.SQLite, or one of its dependencies of component PLATOS.Primary_output  21  ISEXP : warning : -6248: Could not find dependent file System.Data.SQLite, or one of its dependencies of component PLATOS.Primary_output

Warning -6248: Could not find dependent file System.Net.Http.Formatting, or one of its dependencies of component PLATOS.Primary_output  22  ISEXP : warning : -6248: Could not find dependent file System.Net.Http.Formatting, or one of its dependencies of component PLATOS.Primary_output

Warning -6248: Could not find dependent file System.Web.Http, or one of its dependencies of component PLATOS.Primary_output 23  ISEXP : warning : -6248: Could not find dependent file System.Web.Http, or one of its dependencies of component PLATOS.Primary_output

On the Installshield setup wizzard I selected that the setup looks for .Net 4.5. so I do not understand those warnings.

When I install the software with the setup in a computer that has no Visual Studio installed (but has the latest Net framework (4.5.2)) the program opens (I see that in the task manager) and closes without showing the GUI. Moreover, when I just copy the \bin\release folder to a computer with no Visual studio, the program still won't run.

My guess is that somehow the program requires for the files that installshield is warning me about, but Shouldn't those files be installed by the .Net 4.5 already?

I have seen other threads where the problem is solved by compiling in release mode, but I am already doing that, so I have no clue of what might be wrong.

Any help is appreciated.


Solution

  • Well, after a very long time, I found the problem.

    First and just to be sure, install all the dependencies using the NuGet manager. (Whenever possible)

    Then as in my case I had C++ wrapped with C++CLI and I use VS 2013, install Visual C++ Redistributable Packages for Visual Studio 2013 manually.

    This made the program to execute properly on a fresh formatted windows 7.