I was trying to determine the installation directory of a SQL Server instance on a 64 bit machine from a 32bit .NET app, and got caught for a while trying to get the registry to work correctly as the regular registry accessed by my code was being virtualized or whatnot by the Windows OS.
I think I have an answer, but I was wondering if there was a better way.