I have need to know what NET framework is present on my PC
I have found this code
http://www.zem.fr/net-comment-trouver-l ... installes/
And thanks to a DENIS code
http://www.purebasic.fr/french/viewtopi ... 327#p11327
I have translate it for enumerate the number of version of .NET
That's works, perhaps someone have better or more reliable

Code: Select all
Procedure.s NetFrameworkPresent()
Define PhraseKey$
If RegOpenKeyEx_(#HKEY_LOCAL_MACHINE, "Software\Microsoft\NET Framework Setup\NDP\", 0, #KEY_ENUMERATE_SUB_KEYS, @hKey) = #ERROR_SUCCESS
While Enum <> #ERROR_NO_MORE_ITEMS
lpcchName = 256
lpszName$ = Space(lpcchName)
Enum = RegEnumKeyEx_(hKey, iSubkey, @lpszName$, @lpcchName, 0, 0, 0, @lpftLastWrite)
iSubkey + 1
If Not FindString(PhraseKey$, lpszName$, 1) And Left(lpszName$, 1) = "v"
PhraseKey$ + lpszName$ + #CRLF$
EndIf
Wend
RegCloseKey_(hKey)
EndIf
ProcedureReturn PhraseKey$
EndProcedure
Debug NetFrameworkPresent()