Verify that the 3.5 framework is installed on the machine

1

I have to perform a C # function that checks that the 3.5 framework is installed on the machine but does not use Registry.LocalMachine.OpenSubKey("Software\Windows\Microsoft.NET\...") , since this function must be used on several different machines all with different paths to the Framework. >     

asked by anonymous 18.03.2016 / 12:09

1 answer

1

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

The method you described will work.

    
18.03.2016 / 13:40