Registry key for ArcGIS Install for version 10

Discussion created by DevonTaig on Feb 23, 2011
Latest reply on Jun 27, 2011 by mike.robb
In the days of 9.x, a person (or an .msi installer) could go to HKEY_LOCAL_MACHINE\SOFTWARE\ESRI\ARCGIS and inspect the InstallDir key to determine where the ESRI ArcGIS installation folder was. How can this be done for version 10?  I have a custom installer that needs to plop some files in that bin directory (where ArcMap lives). Thanks in advance.

Well...just sort of answered my own question. I have a 64 bit machine, so for me the answer is: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ESRI\ArcGIS

So, my new question...since I'll be deploying on both 32 and 64 bit machines, how do you get the install directory in a machine agnostic way?