Search code examples
.netc++visual-studiosetup-project

Create a Setup and Deployment Project in windows without .net support


I have got a vc++ project and for that I have created .exe and .lib. Now, I am trying to create a set up project for this. I am following the instructions given on this link: http://msdn.microsoft.com/en-us/library/ms235317(v=vs.90).aspx

under the heading: Procedures for deploying Visual C++ library DLLs as private assemblies

I am removing mfcm90.dll, mfcm90u.dll, and msvcm90.dll from my set up project and my .exe has been built with "No Common Language Runtime support" option.

I am making a release build of set up project. Now, when I try to install this project on a windows machine, which does not have any visual studio installed, it asks for installation of .NET and even that installation is failing. How can I create a set up project without requiring .NET dependency.

Thanks, sg


Solution

  • A .NET Framework installer is launched during install only if you added it as a prerequisite. You can change prerequisites by clicking the "Prerequisites..." button in your setup project Properties pane.

    For your project you should make sure that no .NET Framework prerequisite is checked.