Thread: Registry plugin
View Single Post
Old 11th January 2021, 15:01   #224
mordack
Junior Member
 
Join Date: Feb 2013
Posts: 6
I have a question. Using the following code, I am able to find the uninstall GUID key i'm looking for.

code:
${registry::Open} "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" "/K=0 /V=0 /S=1 /B=1 /NI=Microsoft SQL Server 2012 Native Client" $r0
MessageBox MB_OK "$r0"
${registry::Find} "$r0" $schPath $schValue $schString $schType



$schPath finds the path of the key based on the DisplayName string.

The search finds \Software\Microsoft\Windows\CurrentVersion\Uninstall\{GUID}. I need to extract {GUID} from the search results. How would I go about doing this?


Thanks.
mordack is offline   Reply With Quote