Check out the .NET 4 Full Framework.

If the .NET 4 platform is not installed, the application displays a message, but if only the client infrastructure is installed and the application requires a complete structure, nothing happens and the application starts.

Is there a way to check if the .NET Framework Full Framework is installed on the target system, and not just on the client platform?

I am looking for a solution to test it using the file "app.manifest" or in C # when the program starts.

+4
source share
2 answers

The best way to check if it exists is to follow the recommendations of the authors and check the availability of the corresponding registry entry.

Details for each of the keys, including .Net 4, can be found at this link http://msdn.microsoft.com/en-us/kb/kbarticle.aspx?id=318785

+9
source

Go to the Project Properties screen (Project / Properites Main Menu), and then select the Publish tab. Click the " Prerequisites " button, you will notice in the list that the " Microsoft.NET Framework 4 Client Profile (x86 and x64) " checkbox is already checked.

Check the box " Microsoft.NET Framework 4 (x86 and x64) " above it.

Then republish your project.

When installing, you now need to check the complete structure and install it if it is missing.

+2
source

Source: https://habr.com/ru/post/1315772/


All Articles