UninstallString without double quotes

This is second part how to find UninstallString windows application with native Windows tools.In the first part I found that there is brilliant way to use double quotes cheat.

In this part I show one way how to uninstall program if the Uninstall string is not in double quotes:
The main goal I have is to create a multi character delimiter:
reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\HandBrake" /v UninstallString
    UninstallString    REG_SZ    C:\Program Files\Handbrake\uninst.exe
I want to use     REG_SZ     as delimiter so I can extract last part which in this case is:
C:\Program Files\Handbrake\uninst.exe
This can be accomplished with:
If I merge all code in for loop then it will not work at all. This is how not to do:

No comments: