I’m trying to make this work, looking for values in both 32 and 64-bit areas of the registry, but it is not happening.
Q:exists key (“HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Sassafras\Install\KeyAccess”) OR (“HKEY_LOCAL_MACHINE\SOFTWARE\Sassafras\Install\KeyAccess”) of registry
E: The operator “key” is not defined.
Q:(value “version” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Sassafras\Install\KeyAccess” of registry) OR (value “version” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Sassafras\Install\KeyAccess” of registry) else (“Not Installed”)
E: A boolean expression is required.
The problem is that the first expression before the OR isn’t of registry. The E: is reporting an error evaluating the expression saying that it can’t find a key property.
Try something like this:
exists key ("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Sassafras\Install\KeyAccess") of registry or exists key ("HKEY_LOCAL_MACHINE\SOFTWARE\Sassafras\Install\KeyAccess") of registry