

Also NOTE: As with anything I program (in full or part), keep the header WITH the function if used or shared.NET Framework detection resource: MSDN KB318785: 'How to determine which versions and service pack levels of the Microsoft. NOTES: No Service Pack information is retrieved, although that can be obtained using the methods in the MSDN link below. NET 4 is installed.Įxpand collapse popup = Func _dotNetGetVersions($bOnlyInstalled=False) Function to return information on which.

NET are not important, the only thing I want to know which version of. NET Framework v4 while I working with 4.5.2. MSI files).įrom the >/forum I found this script below but shows.
#GET NET FRAMEWORK V4.0.30319 SOFTWARE#
NET Framework v.4 not found!" EndIf EndSelect Next EndFunc =>_Read_Productsīoth scripts are quite slow, brute force method (loop through the collection of software products installed using.

Version > "4.*" Then Return "Found: " & $objItem. ExecQuery ( "Select * from Win32_Product" ) For $objItem In $colItems Select Case StringInStr ( $objItem. #ce - Opt ( "MustDeclareVars", 1 ) Global $wbemFlagReturnImmediately = 0x10, _ DO NOT CHANGE $wbemFlagForwardOnly = 0x20 DO NOT CHANGE local $NetVersion1 = _GetNetVersion1 ( ) MsgBox ( 0, ".NET Framework ", $NetVersion1 ) debug Func _GetNetVersion1 ( ) Local $strComputer = "localhost" local $objWMIService = ObjGet ( "winmgmts:\\" & $strComputer & "\" ) ? Local $objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\root\CIMV2") ? Local $objWMIService = ObjGet("winmgmts:\\" & & "\root\CIMV2") ? Local $objWMIService = ObjGet("winmgmts://" & $strComputer & "\root\CIMV2" ) Local $colItems = "" $colItems = $objWMIService. The best we could do was this brute force method,Ī method which is accompanied by a caveat we’ll talk about momentarily. That could tell us, once and for all, which version is installed on a computer. Well, if there is, we couldn’t find it: we were unable to locate a COM object or a specific registry key NET Framework.Īny version earlier - or later - and the application might not run.īecause of that you might think there’s a very quick, easy way to determine which version (or versions) of the. Guys know from painful experience that custom applications often require a very specific version of the. NET Framework is installed on a computer,Įspecially when you’re working with custom applications written in-house the Scripting It’s very important to know which version of the.
