Registry GetSubKeyNames() lists different keys than Regedit?

后端 未结 1 1463
执念已碎
执念已碎 2020-12-24 13:50

We are using WIX to install a number of services we create. I am writing a quick utility to dump the currently installed services. I just iterate over subkeys of:

         


        
1条回答
  •  情书的邮戳
    2020-12-24 14:10

    The problem is a 32/64 bit issue. It seems that some of the installations happened under

    HKEY_LOCAL_MACHINE\Software\Wow6432Node\... 
    

    When I enumerate them both, I get all of my installations.

    Apparently I can also use RegistryKey.OpenBaseKey() with a RegistryView.Registry64/32 instead of the Wow6432Node too.

    0 讨论(0)
提交回复
热议问题