How to get ProgramFiles paths?
<p>I have weird problem.</p>

<p>I`m using windows 7 enterprise sp1 64 bit.</p>

<p>I need to take Program files and Program files X86 directories path for my project so I`m using</p>

<pre><code>Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)
           .TrimEnd('\\');
Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86)
           .TrimEnd('\\');
</code></pre>

<p>but both of these lines returns Program files X86 folder.</p>

<p>How can I solve it?</p>
