Help, searches used in prerequisit condition are always true - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

seric
Posts: 1
Joined: Fri Jan 15, 2010 3:48 am

Help, searches used in prerequisit condition are always true

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?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Help, searches used in prerequisit condition are always true

Hello,

Please send your .aip project file to support at advancedinstaller dot com so I can analyze the issue.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”