This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Registry System Search doesn't work
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 14, 2010
12:32 PM
Registry System Search doesn't work
I'm trying to create an install condition where the installer will look to see if a registry key exists and if so, continue installing, else it'll pop up a message box saying to the operator that they must install this prerequisite before continuing. I add a System Search to look for a registry key and all I want is for that key to exist. For example,
HKLM\Software\Company\Product
I want the Product key to exist, there could be nothing contained or a child of that key, I don't care. I just want it to exist. So I add a system search for the HLKM root and add the key as SOFTWARE\Company\Product (leaving value blank and keeping 64 portion of the registry unchecked).
I store the value in a PRODUCT property and use it in an install condition: (PRODUCT) with the message "Make sure product is installed before continuing." Well, I do this, and it still cannot find the product even though it is installed. Anyone know what could be causing this? It's incredibly frustrating as Ive been trying to debug this for the past few hours.
HKLM\Software\Company\Product
I want the Product key to exist, there could be nothing contained or a child of that key, I don't care. I just want it to exist. So I add a system search for the HLKM root and add the key as SOFTWARE\Company\Product (leaving value blank and keeping 64 portion of the registry unchecked).
I store the value in a PRODUCT property and use it in an install condition: (PRODUCT) with the message "Make sure product is installed before continuing." Well, I do this, and it still cannot find the product even though it is installed. Anyone know what could be causing this? It's incredibly frustrating as Ive been trying to debug this for the past few hours.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 16, 2010
08:30 AM
You might want to check the documentation, but I think that the AppSearch action (which is what System Search implements) can't find if a key exists, but can only find if a key has a value. In other words, don't look for the root key, look for a key or a string or dword that you know will be populated. the AppSearch action returns the value of the seach in the property, so if there is no value, the property doesn't get created.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 24, 2010
04:02 PM
Did this ever resolve your issue?
I have exactly the same problem searching for this key.
SOFTWARE\Microsoft\Microsoft SQL Server\BC\CurrentVersion
and then putting in "Version" as the registry value. I know it exists I can see it and it has a value of 8.05.2309. It is a String value registry entry.
I have logging turned on on my MSI project but it doesn't give any useful info other than the message i set to display when it cannot find this registry entry.
Does anybody have any other insights into this?
Thanks in advance
Chris
I have exactly the same problem searching for this key.
SOFTWARE\Microsoft\Microsoft SQL Server\BC\CurrentVersion
and then putting in "Version" as the registry value. I know it exists I can see it and it has a value of 8.05.2309. It is a String value registry entry.
I have logging turned on on my MSI project but it doesn't give any useful info other than the message i set to display when it cannot find this registry entry.
Does anybody have any other insights into this?
Thanks in advance
Chris
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)