Using 6.7.1 Enterprise Edition.
I search for a registry key that I want to use as a condition in prerequisites.
If I test the search using the test button it works fine, meaning that if the key exists it returns its raw value and if not it returns nothing.
However, when I include this as a condition in the project prerequisites it seems that it always returns true and the install can never continue.
My search is set up as
IS_SERVICE
Root: HKLM
Key: SYSTEM\CurrentControlSet\Services\MyService
Name: DisplayName
Type: Retrieve raw value
and the prerequisite condition is as follows
Condition: IS_SERVICE = "MyService"
Description : The service exists
When running the installer it if the key exists or not the message "The service exists" is displayed and the install is aborted.
I would think that based on the search it should only abort id the DisplayName value of the MyService reg key is equal to "MyService" is this not the case?
FOLLOW US
Get the latest news in Application Packaging