cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
denisccote
Level 3

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
Labels (1)
0 Kudos
(3) Replies
MGarrett
Level 6

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.
0 Kudos
denisccote
Level 3

// 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;
0 Kudos
denisccote
Level 3

Furthermore, when I open regedit and highlight the key that Im trying to read, then it works more frequently on winxp.
0 Kudos