Give this a try and see if it does what you wanted:
exists key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion” whose (exists value “Run load” whose (it as string ends with “\uninstall\rundl123.exe”) of it) of registry
You might need to play with the string value “\uninstall\rundl123.exe” to get it to accuratly give you the true/false that you wanted.
Did you want the literal string %windir% or do you want the actual path to the windows folder?
This will do the first:
exists key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion” whose (exists value “Run load” whose (it as string ends with “%25WINDIR%25\uninstall\rundl123.exe”) of it) of registry
Notice that I changed % to %25. %25 is the hex character code for the percent character. You need to escape any precent characters in literal strings by using the hex code.
This will actually substitute %windir% with the path to the windows folder:
exists key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion” whose (exists value “Run load” whose (it as string ends with (pathname of windows folder & “\uninstall\rundl123.exe”)) of it) of registry
exists key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion” whose (exists value “Run load” whose (it as string ends with “%25WINDIR%25\uninstall\rundl123.exe”) of it) of registry
Is there somewhere %25 and other features are documenteted?