Navigating Program Files for either x64 or x32
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/194157/c-sharp-how-to-get-program-files-x86-on-vista-x64">C# - How to get Program Files (x86) on Vista x64</a>  </p>
</blockquote>



<p>What is the best way to handle navigating whether a computer is 64 bit or not in C#?
Currently I do the following in C#:</p>

<pre><code>bool is64bit = false;
</code></pre>

<p>Within the main method:</p>

<pre><code>if (Directory.Exists("C:\\Program Files (x86)"))
{
    is64bit = true;
}
</code></pre>

<p>Is there a better way to handle Program Files then that?  As in later when I call a process that installs by default in Program Files, is there a shortcut I can use other then seeing if it exists?</p>
