Search in registry show error if not found reg key - Advanced Installer Community
gcruz
Posts: 16
Joined: Fri Oct 20, 2017 12:09 pm

Search in registry show error if not found reg key

Hello !!
I have created an Search to obtain a key value from registry. When test this search, if the key not exists returns empty value, but when running the installer search shows an error. (See the attachment)

Is possible to hide this error message and take a default value from another property??

Thanks !!

Guillermo
Attachments
Error_locating_Reg_Key.jpg
Error_locating_Reg_Key.jpg (29.62 KiB) Viewed 2239 times
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Search in registry show error if not found reg key

Hello,

You could initialize the result property from "Install Parameters" page. Just add a new property in the "Properties" section, named the same as your result property, with a default value configured as a valid path (for example "C:\Default Folder"). If the search will not return a result the default value will be maintained.

If this isn't helpful, please send us the .AIP project to support at advancedinstaller dot com so we can have a better view of your scenario.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”