Question

Je sais que nous pouvons détecter la version majeure et la version SP de la chaîne de l'agent utilisateur.

Cependant, je dois faire la distinction entre les révisions et, 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  

sont différents pour moi, et ils sont rapportés dans l'agent utilisateur comme ceci: Mozilla / 5.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64, SLCC1, CLR .NET 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 )

Toute méthode est acceptable (Silverlight, Flash, Java, etc.), aussi longtemps qu'il ne nécessite pas d'interaction utilisateur .

Mise à jour. On y est presque ... Signé fonctionne ActiveX .NET sur le niveau de sécurité moyen (à savoir en Intranet), ne fonctionne pas dans un cadre Internet

Hébergement Windows Forms dans IE semble fonctionner de la même façon. Si seulement je peux trouver comment spécifier que je ne ai pas besoin une grande confiance au travail ...

Était-ce utile?

La solution

It's trivial to create a browser applet in .NET. There might be a few security settings in the way, but since you said that any method is acceptable, this should work as well. From there you've got a fully working .NET app embedded in the browser. Just detect the version like you normally would.

Added: I think you could also somehow specify that you don't need full trust, which would ease the security problems.

Autres conseils

I believe the only two ways to determine patch level is to either check the file versions themselves or to read a registry key.

Either way, from my limited research (2 minutes) it sounds pretty hard to do. You might be able to write an ActiveX control to do this though.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top