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: -4370 error on RegDBGetKeyValueEx
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
‎May 28, 2010
09:54 AM
-4370 error on RegDBGetKeyValueEx
Alright, I'm trying to use this to find out the version number of a program. I've commented out lines and narrowed to a RegDBGetKeyValueEX command. In other words, if I comment out that line, everything else compiles.
here is my code (with slight modifications to preserve anonymity):
Why would it throw that -4370 error? The registry key is right, the path is right, and it fails no matter what type of string I make the type.
I looked up the error and it says some sort of "com" error.
here is my code (with slight modifications to preserve anonymity):
declare variables wrote:
string Value, Key, Item;
number Size;
body in begin/end wrote:
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
Key = "SOFTWARE\\CompanyName\\Product";
Item = "Version";
RegDBGetKeyValueEx(Key, Item, REGDB_STRING, Value, Size);
if Value = "certain_version" then
UninstallApplication("{701F4A06-6D3C-4A69-A962-2938133FCE86}","",LAAW_OPTION_WAIT);
endif;
Why would it throw that -4370 error? The registry key is right, the path is right, and it fails no matter what type of string I make the type.
I looked up the error and it says some sort of "com" error.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 28, 2010
10:04 AM
Update: I see it is saying "Numberic variable required." Doesn't make sense to me.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 28, 2010
10:12 AM
Never mind. I think I debugged my way out of this.
The third argument returns a type, instead of selects a type.
The third argument returns a type, instead of selects a type.