title: How to implement check for program files folder in a windows installer
body: <p>I have a VSTO setup project as per <a href="http://msdn.microsoft.com/en-us/vsto/ff937654.aspx" rel="nofollow">1</a>.
  This site mentions that I do not need to implement security if I install the program in the Program files folder; but it does not explain how to implement this in a setup project (as custom actions, etc.)</p>
  
  <p>Notes:</p>
  
  <ul>
  <li><p>Need to be able to detect C:\Program Files\ under 32-bit systems or C:\Program FIles (x86)\ under x64 systems.</p></li>
  <li><p>I am using VS2010 setup project.</p></li>
  </ul>