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: How to check if registry entry exist?
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
‎Sep 18, 2008
02:32 AM
How to check if registry entry exist?
Hi,
I am using system search to look for registry entry
How do I check using install script if the search was successful?
Must I use MsiGetProperty to get the value of the property and then use
some string comparison function?!?!
What happen if the search failed, will I get empty property? so maybe i just need to check the return buffer size?
Thanks in advance.
I am using system search to look for registry entry
How do I check using install script if the search was successful?
Must I use MsiGetProperty to get the value of the property and then use
some string comparison function?!?!
What happen if the search failed, will I get empty property? so maybe i just need to check the return buffer size?
Thanks in advance.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 18, 2008
04:50 PM
tomerdr wrote:
Hi,
I am using system search to look for registry entry
How do I check using install script if the search was successful?
Must I use MsiGetProperty to get the value of the property and then use
some string comparison function?!?!
What happen if the search failed, will I get empty property? so maybe i just need to check the return buffer size?
Thanks in advance.
You could use functions like RegDBGetKeyValueEx() which take some paratmeters (look at IS help) and returns 0 on sucess and 1 on failures. It also returns the value of a key specified in a specified var (specified as parameters), once you have executed RegDBGetKeyValueEx () sucessfully , you could use simple comparison to see if there is any valued returned in specified variable.
HTH
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 18, 2008
05:05 PM
If you do want to use the property and not read the registry directly, there's MsiEvaluateCondition.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 19, 2008
03:47 AM
i Want to minimze use of installscript functions so i will be prepared for WIX...
MsiEvaluateCondition looking good....
Thanks
MsiEvaluateCondition looking good....
Thanks
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)