Search Registry issue - Advanced Installer Community
AlexanderAnishchik
Posts: 18
Joined: Fri Jan 10, 2020 10:54 am

Search Registry issue

I'm trying to save MariaDB (MySQL) data folder path to installation property. To achive this goal I use Search feature with Registry Location Property. But result of search is empty somehow (please see attachment). If I set "Search the 64-bit portion of the registry" checkbox it returns path with "Program Files x86" part but actually path is "Program Files". What should I change?
Attachments
Screenshot_1.png
Screenshot_1.png (90.73 KiB) Viewed 4063 times
AlexanderAnishchik
Posts: 18
Joined: Fri Jan 10, 2020 10:54 am

Re: Search Registry issue

So the problem is when checkbox enabled it returns worng path from variable
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Search Registry issue

Hello Alexander,

The fact that it returns nothing when you don't check the "x64" checkbox is due to registry redirection (the WOW6432NODE registry key).

The Wow6432Node registry entry indicates that you're running a 64-bit version of Windows. The OS uses this key to present a separate view of HKEY_LOCAL_MACHINE\SOFTWARE for 32-bit applications that run on a 64-bit version of Windows.

However, the fact that the returned value is not the exact one as in your registry is really strange.

Could you please let me know how have you tested this? Have you used the "Test Search" button from the toolbar? If so, could you please test it like this and let me know the results:

- go to "Custom Actions" page

- add a "MessageBox" custom action

- schedule it after the "Searches Action" group in the "Wizard Dialogs Stage"

- the custom action content should be set to:

Code: Select all

[MARIADB_DIR]
- rebuild & run the setup

A message box containing your path should be spawned upon installation. Could you please let me know if the result is the same as before?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AlexanderAnishchik
Posts: 18
Joined: Fri Jan 10, 2020 10:54 am

Re: Search Registry issue

When I use "Test Search" it returns wrong value but if use it on UI (when installation process started) it returns correct one.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Search Registry issue

Hello,

Well, the "Test Search" functionality is not always the most accurate.

However, I am glad everything is working as expected when you actually run the setup.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AlexanderAnishchik
Posts: 18
Joined: Fri Jan 10, 2020 10:54 am

Re: Search Registry issue

Ok, thank you
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Search Registry issue

You are always welcome!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”