Thx for the responses!
loop:
EnumRegKey $key HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" $inc
detailprint "$key"
sleep 100
StrCmp $key "" done
IntOp $inc $inc + 1
;call un.UninstallSQLValueAnalyzer
ClearErrors
ReadRegStr $entry HKLM "Software\Microsoft\Windows\CurrentVersion\$key" $Location
IfErrors loop
Detailprint "$entry"
sleep 100
goto loop
done: