edgsoccer
Posts: 32
Joined: Wed Jul 02, 2014 11:07 pm

Search Regitry Value Exists & All Regitry Search on Win 8.1

Problem description - if you do a search and try to look up something on the registry, some reg stuff are not showed on windows 8.1 when you browse for them or if you run it against windows 8.1, it works for windows 7.

How to reproduce ? - create a Registry value exists, then try to browse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\. Instance Names will not appear when you browse within advanced installer on windows 8.
if you do the same thing on windows 7 it will see it. Same thing when we run the installer against windows 8 and 7. Even if I type it manually it will fail to find it for Windows 8 and find it for windows 7.
Attachments
Windows 8
Windows 8
search windows 8.JPG (72.67 KiB) Viewed 5190 times
Windows 7
Windows 7
search windows 7.JPG (76.02 KiB) Viewed 5190 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Search Regitry Value Exists & All Regitry Search on Win

Hello,

This may happen if you are using a 64-bit architecture of Windows 8.1 where are installed the 64-bit SQL Servers. Please note that both, our "Registry Picker" and the "Extended Searches", use only the 32-bit zone of the registry (i.e. the "Wow6432Node" key). Therefore you won't be able to pick/search for a 64-bit registry value.

If you want to search on a 64-bit machine if a 64-bit registry value exists, then as a workaround you can use a standard registry search having the "Search the 64-bit portion of the registry" option enabled. Here are the steps to proceed:
1. go to "Registry" page and add a new search (e.g. MY_SEARCH)
2. from its context menu choose "Add Location -> Registry"
3. manually configure the "Registry Location Properties" right pane like this:
  • Root: <reg root>
    Key: <reg key path>
    Name: <reg value name>
    Type: Retrieve the raw value
    Search the 64-bit portion of the registry: checked
4. rebuild and test again the scenario
To check if the registry value exists you should just check its associated property value. If the property is set, then it means the registry exists, otherwise it don't exist.

Let us know if this helped, otherwise please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
edgsoccer
Posts: 32
Joined: Wed Jul 02, 2014 11:07 pm

Re: Search Regitry Value Exists & All Regitry Search on Win

Ok that helped a little, because some folders are there now that before they wernt, but i was not able to use if you use the picker the Key: field will always stay as "YourKey" and same thing for the Name: as "YourValue". I tryed it doing it manually but when i try to search it comes up with no find, even if the picker did find it.
Attachments
64 bits still not showing some stuff on the picker
64 bits still not showing some stuff on the picker
SQL folder not showingJPG.JPG (99.3 KiB) Viewed 5138 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Search Regitry Value Exists & All Regitry Search on Win

Hello,

First of all I apologize for my delayed reply, but I was out of the office in the second part of the last week.

Can you please manually write the path to your registry value in the "Search" page (without picking it using our Registry picker) and, then in order to check the search result (is stored in its name which actually is a property property, i.e. MY_SEARCH) you can add an "Execute inline script code" custom action with sequence, scheduled after Wizard Dialogs Stage -> Searches" and "Install Execution Stage -> Searches" action group, like this:
  • Source Type: Visual Basic Script (*.vbs)
    Script Text: MsgBox Session.Property("MY_SEARCH")
Then, just rebuild and run your project.

If this is still of no avail to you, can you please send us the .aip (project file) to support at advancedinstaller dot com so we can check its settings?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
artasom
Posts: 5
Joined: Wed Apr 26, 2017 2:32 pm

Re: Search Regitry Value Exists & All Regitry Search on Win 8.1

Hello there,

Sorry to bring up a two year old post, but I am facing the same issue. I have followed the instructions Daniel posted on his last message, and the message box just shows an empty result. I am working on a Windows 10 CU Machine. Any idea of how to solve this issue?

All the best.
Miguel A.
artasom
Posts: 5
Joined: Wed Apr 26, 2017 2:32 pm

Re: Search Regitry Value Exists & All Regitry Search on Win 8.1

artasom wrote:Hello there,

Sorry to bring up a two year old post, but I am facing the same issue. I have followed the instructions Daniel posted on his last message, and the message box just shows an empty result. I am working on a Windows 10 CU Machine. Any idea of how to solve this issue?

All the best.
Miguel A.
I think the issue is that I had forgot to check the 'search the 64-bit portion of the registry, though I would have sworn I had done it.

All the best,
Miguel A.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Search Regitry Value Exists & All Regitry Search on Win 8.1

Thank you for your follow up Miguel. I'm glad everything works now.

Just let us know when you have any question.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”