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
- :
- More Info
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
‎Oct 30, 2007
12:48 PM
RegDBGetKeyValueEx failing intermitantly on WinXP
This call is working on Win2003 server and failing intermittantly on WinXP, works sometimes and sometimes not. Has anyone heard of or seen this before. Using installshield 11.5
Thanks
Thanks
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 01, 2007
09:55 AM
Could you please post the actual code you use here? I have a feeling that the problem is in the details of your implementation.
BTW, this is the InstallShield 2008 forum.
BTW, this is the InstallShield 2008 forum.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 02, 2007
05:54 PM
// get tableid install directory
retValue = RegDBSetDefaultRoot ( HKEY_LOCAL_MACHINE );
if(retValue < 0) then
MessageBox("Error setting default root. " + FormatMessage(retValue), INFORMATION);
abort;
endif;
retValue = RegDBGetKeyValueEx ( gmRegKey, "InstallLocation", regKeyType, gmInstallDir, nvSize );
if(retValue < 0) then
MessageBox("Error getting registry key. " + FormatMessage(retValue), INFORMATION);
abort;
endif;
retValue = RegDBSetDefaultRoot ( HKEY_LOCAL_MACHINE );
if(retValue < 0) then
MessageBox("Error setting default root. " + FormatMessage(retValue), INFORMATION);
abort;
endif;
retValue = RegDBGetKeyValueEx ( gmRegKey, "InstallLocation", regKeyType, gmInstallDir, nvSize );
if(retValue < 0) then
MessageBox("Error getting registry key. " + FormatMessage(retValue), INFORMATION);
abort;
endif;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 02, 2007
07:12 PM
Furthermore, when I open regedit and highlight the key that Im trying to read, then it works more frequently on winxp.