Select Registry Key missing entries? - Advanced Installer Community
Arthur
Posts: 69
Joined: Wed May 19, 2010 9:53 am

Select Registry Key missing entries?

Hi,
I am trying to create condition for a prerequisite based on a registry key. An example of a registry key that I might search for is:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Package_1_for_KB2032276~31bf3856ad364e35~amd64~~6.1.1.0

When I try toi select this key from the Edit Search dialogue box, I can only see as far as HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing - nothing else is shown. I know this key exists, as I can see it in my registry using regedit. Curiously, when I try to import a registry key on the Resources\Registry page, I can go one level further, i.e. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages. I have attached screen grabs of the Select Registry Key dialogue boxes in both cases. Why can't I see the full path to the key? If I type in the full path, and press the Evaluate button, the evaluation fails.

Arthur
Attachments
Path seen when importing a registry key
Path seen when importing a registry key
Registry.PNG (28.99 KiB) Viewed 10212 times
Path seen when creating prerequisite condition
Path seen when creating prerequisite condition
Prerequisite.PNG (28.93 KiB) Viewed 10212 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Select Registry Key missing entries?

Hi Arthur,

When a registry entry is searched in the "Install Conditions" tab of a prerequisite, the registry entries located under 32-bit locations are searched by default and that's why you encounter this behavior.

In order to achieve what you want you can select the "Use 64-bit locations when evaluating conditions on a 64-bit machine" option.

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Arthur
Posts: 69
Joined: Wed May 19, 2010 9:53 am

Re: Select Registry Key missing entries?

Hi,

I have already tried select the "Use 64-bit locations when evaluating conditions on a 64-bit machine" option. It's the same either way on the prerequisites tab.

Arthur
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Select Registry Key missing entries?

Hi Arthur,

Can you please select that option, then save and reopen the project and see if the behavior persists?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Arthur
Posts: 69
Joined: Wed May 19, 2010 9:53 am

Re: Select Registry Key missing entries?

Hi Eusebiu,

Ok, tried that - now the prerequisites tab shows the same as the registry tab, i.e. it's one level further. I can now get as far as HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages but I still can't see any keys below. If I paste the key name in, I still get a failure.

Arthur
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Select Registry Key missing entries?

Hi Arthur,
I can now get as far as HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages but I still can't see any keys below
Indeed, this seems to be an Advanced Installer issue. A fix will be available in a future version of Advanced Installer, thank you for bringing it to our attention.
If I paste the key name in, I still get a failure.
This happens because our registry search works only with "HKLM" key name and not with "HKEY_LOCAL_MACHINE". Can you try to change it and see if this works? We already have this improvement on our TODO list (to support both key names) and it will also be available in a future version of Advanced Installer.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Arthur
Posts: 69
Joined: Wed May 19, 2010 9:53 am

Re: Select Registry Key missing entries?

Hi,

I used HKLM and that worked - thanks.

Arthur
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Select Registry Key missing entries?

You're welcome. I'm glad you got this working.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”