Hello,
I use InstallShield Professional 5.5. I have a problem using RegDBGetKeyValueEx on a system that has OfficeXP installed. For some reason this correctly retrieves a value from the registry:
nvResult = RegDBGetKeyValueEx ( "\\Software\\Microsoft\\Office\\10.0\\Access\\Settings" ,
"MRU1" , nvType , svTempStr , nvSize );
But this fails to retrieve the value sought:
nvResult = RegDBGetKeyValueEx ( "\\Software\\Microsoft\\Office\\10.0\\Word\\Data" ,
"Settings" , nvType , svTempStr , nvSize );
Even though that key and value do exist in the registry according to Regedit.exe. Has anyone run into this and found a fix?
Thanks. - John
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Registry Issue
Started by
JohnImhoff
, Aug 31 2002 01:11
1 reply to this topic
Posted 31 August 2002 - 11:11
A few things to check:
Get rid of the leading backslash in front of Software. (You should never have a leading backslash there)
Make sure you have set the correct root key. Note that some InstallShield functions reset that selection so you should call RegDBSetDefaultRoot immediately before your RegDBGetKeyValueEx call.
Make sure you have sufficient rights to access that key. Not sure if Read access is sufficient for InstallShield (they may try to open the key in read/write mode)
Check the return value from your function call (nvResult)
Get rid of the leading backslash in front of Software. (You should never have a leading backslash there)
Make sure you have set the correct root key. Note that some InstallShield functions reset that selection so you should call RegDBSetDefaultRoot immediately before your RegDBGetKeyValueEx call.
Make sure you have sufficient rights to access that key. Not sure if Read access is sufficient for InstallShield (they may try to open the key in read/write mode)
Check the return value from your function call (nvResult)
Stefan Krüger
InstallSite.org twitter facebook