Detect .net version and version from Internet Explorer

I know that we can find the main version and the SP version from the user-agent string.

However, I need to distinguish between versions, i.e.

2.0 RTM (x86) 2.0.50727.42 2.0 RTM (Vista) 2.0.50727.312 2.0 (KB928365) 2.0.50727.832 

different for me, and they are reported in the user-agent as follows: Mozilla / 5.0 (compatible MSIE 7.0, Windows NT 6.0, WOW64; SLCC1; .NET CLR 2.0.50727 ; Media Center PC 5.0; .NET CLR 3.0.04506 ;. NET CLR 3.5.30707; InfoPath. 1; el-GR)

( http://en.wikipedia.org/wiki/List_of_.NET_Framework_versions )

Any method is valid (Silverlight, Flash, Java, etc.) if it does not require user interaction .

Update: almost there ... The signed .NET ActiveX works at the medium security level (i.e., on the intranet), does not work in the Internet settings.

Windows Forms hosting in IE seems to work the same. If only I can find how to indicate that I do not need high confidence in the work ...

+4
source share
2 answers

trivial to create a browser applet in .NET. There may be several security settings along the way, but since you said that any method is acceptable, this should also work. From there, you have a fully functional .NET application built into the browser. Just define the version as you normally would .

Added: I think you can also somehow indicate that you do not need full trust, which will ease security problems.

0
source

I believe that there are only two ways to determine the level of patches - either check the file versions themselves, or read the registry key.

In any case, from my limited research (2 minutes) this sounds pretty complicated. You might be able to write an ActiveX control to do this.

0
source

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


All Articles