Just for learning, looking or leaving  
Search for a value in the registry. 
Take it and modify like you want  
 
 #include <GUIConstants.au3>
GUICreate("Test",500,80)
$info_text = GUICtrlCreateLabel("",10,10,480,60)
GUISetState()
Global $found = ""
SearchReg("HKCU","Version")
;SearchReg("HKLM","ProductName")
GUIDelete()
Msgbox(0,"",$found)
Exit
;*****************************************************
; Recursive search-function
;*****************************************************