Jump to content


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.
Photo

RegDBKeyExist problem


2 replies to this topic

mikebsr

mikebsr
  • Members
  • 19 posts

Posted 14 February 2002 - 14:28

After installation, I make several registry changes. Everything works well in that respect. However, I need to make a change to some COM settings (the active controls won't work with %SystemRoot% and require the exact winsysdir path) to some active controls. When I use the RegDBKeyExist function (as I do on the others), it cannot find a registry key by the CLSID. For example, I run this:

RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
szKeyName="SOTWARE\\Classes\\CLSID\\{27753E38-E831-11D2-A1C2-00104B62BB2F}"
if (RegDBKeyExist(szKeyName)>0) then
  //blah blah blah
endif;

I always return a zero. If I change it (much like my working code) to something not a CLSID, it works. Any ideas on how to find a registry key by CLSID, or am I doing something fundamentally wrong? Thanks!

(Edited by mikebsr at 6:30 pm on Feb. 14, 2002)


David Bajgar

David Bajgar
  • Members
  • 33 posts

Posted 18 February 2002 - 16:07

Hi,
I tried it and it worked fine, it found the registry key by CLSID.
You wrote SOTWARE instead SOFTWARE (F is missing) in the szKeyName.

mikebsr

mikebsr
  • Members
  • 19 posts

Posted 25 February 2002 - 21:45

I saw that typo, fixed it, and everything worked fine. Duh.

Thanks for your help. Good catch!