Check that framework 3.5 is installed on the machine

Asked

Viewed 331 times

1

I have to perform a function in C# to check that framework 3.5 is installed on the machine but not using Registry.LocalMachine.OpenSubKey("Software\Windows\Microsoft.NET\..."), because this function has to be used on several different machines all of them with different paths to the Framework.

1 answer

1


The physical location of the files is different from the Registry. Regardless of where . NET was installed, a key on Software\\Microsoft\\NET Framework Setup\\NDP\\v3.5 will be created.

The method described by you will work.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.