a.guelle
Posts: 97
Joined: Tue May 19, 2015 2:23 pm

[solved] Prerequisite Condition does not find Registry Path

Hi,

I have to mandatory install the "SQL Server Command Line Tools" as a prerequisite. But the registry key is not shown by the RegKey Picker and is never found either. The option "Use 64-bit locations when evaluating conditions on a 64-bit machine" does not make a change either.

The desired value to get is:

Code: Select all

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\SqlCmdLnUtils\CurrentVersion]
"Version"="11.2.5058.0"
PrerequisiteRegSearch.PNG
Last edited by a.guelle on Tue Jun 23, 2015 11:07 am, edited 1 time in total.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Prerequisite Condition does not find Registry Path

Hello,

OK so the registry value is in the 64-bit portion of the registry. Can you find it with regedit?

Keep in mind that in the "New Search" dialog you should have something like:

Code: Select all

HKLM\Software\Microsoft\Microsoft SQL Server\SqlCmdLnUtils\CurrentVersion
Does it work if you don't use the picker and just copy-paste the above in the "Registry value" field?

P.S. I can't see the attached image. Did you forget to attach it?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
a.guelle
Posts: 97
Joined: Tue May 19, 2015 2:23 pm

Re: Prerequisite Condition does not find Registry Path

Hi Mihai,

Yes, I can find the value with regedit. I can see the key ehn using the picker, but noth the values. Copying the path manually does not work. Evaluating returns FAILURE and the Installer does never find it.

By the way I attached the last picture properly as I could see it in the preview.
Attachments
RegEdit.PNG
RegEdit.PNG (45.5 KiB) Viewed 4615 times
Picker.PNG
Picker.PNG (28.95 KiB) Viewed 4615 times
a.guelle
Posts: 97
Joined: Tue May 19, 2015 2:23 pm

Re: Prerequisite Condition does not find Registry Path

Just got the solution from a colleague.

It works if I put in the reg value by hand. I just missed the Value at the end of the string:

Wrong search...

Code: Select all

HKLM\Software\Microsoft\Microsoft SQL Server\SqlCmdLnUtils\CurrentVersion
corrected Search...

Code: Select all

HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\SqlCmdLnUtils\CurrentVersion\Version

Return to “Common Problems”