Key nonexistent (in Win7)

(imported topic written by secasados)

hi!

I have a problem with QnA.

Q: exist key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{4B6C7001-C7D6-3710-913E-5BC23FCE91E6}” of registry

A: False

T: 0.081 ms

Yet, I know the key exists.

The answer is False if i do the question in Win7. In WinXP it works correctly with the same question.

Regards

(imported comment written by martinc)

Quick guess, the Win7 system is 64bit and the XP is 32. The Query for the key should look like:

exist key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{4B6C7001-C7D6-3710-913E-5BC23FCE91E6}” of x32 registry

(imported comment written by secasados)

thanks so much.

It works in Win7 if i write “of x64 registry”

thanks you again.

see you.

(imported comment written by jgstew)

In this case, you want the following so that you can use the same statement on both 32bit and 64bit OSes:

exist key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{4B6C7001-C7D6-3710-913E-5BC23FCE91E6}” of native registry

(imported comment written by secasados)

operating correctly too.

Thanks you very much