Quantcast
Channel: .NET Framework Setup and Servicing forum
Viewing all articles
Browse latest Browse all 3295

How to programmatically know if .Net framework is fully installed.

$
0
0

I have a custom setup that I call .Net functions from custom actions. Also this setup checks if .Net framework 4.o is installed as a pre-requisite. If not installed, the installation wizard terminates the installation successfully. 

If I install .Net framework 4 and continue to install my installation wizard without restarting the computer to complete the .Net installation, CCPSearch finds that the required .Net version is installed and continues the setup wizard. But it fails to execute .Net driven custom actions. If I restart the computer and complete the .Net installation and then run the setup, the custom actions are executes without any problem. 

This means the computer needs to be restarted to complete the .Net installation (i could be wrong :p). Is there a way to find if the .Net is not installed completely, so I can programmatically check this and terminate the installation prompting the end user to restart the PC before installing the setup ?


Viewing all articles
Browse latest Browse all 3295

Trending Articles