I’m trying to delete a value in the registry but am not able to do it via the registry wizard or via the code below. What am i doing wrong?? I’m trying to remove the string value “Bob” from the key HKEY_CLASSES_ROOT\CLSID{027FCE5E-4A03-47D5-AEB7-4E145BB7CB91}\InprocServer32
if {exists value “” of key “HKCR\CLSID%7B027FCE5E-4A03-47D5-AEB7-4E145BB7CB91%7D\InprocServer32” of registry}
if {exists value “” of key “HKCR\CLSID%7B027FCE5E-4A03-47D5-AEB7-4E145BB7CB91%7D\InprocServer32” of registry} contain “tsjDocAssembly.dll”}
Thanks that worked. Taking the fixlet further, I would like to test the value of a key to see if it contains certain chars. The best I am able to do is an absolute value test using “=”. Am I able to use regex to see if any of the chars are in the value? This is what I have currently:
if {exists value “” of key “HKCR\CLSID%7B027FCE5E-4A03-47D5-AEB7-4E145BB7CB91%7D\InprocServer32” of registry and (value “” of key “HKCR\CLSID%7B027FCE5E-4A03-47D5-AEB7-4E145BB7CB91%7D\InprocServer32” of registry = “C:\Program Files\Trim Context\tsjDocAssembly.dll”) }