title: How can I detected if my machine is x32 or x64 via code?
body: <p>My application needs to know if a program is installed on the machine in order to work, and I want the option to know if <strong>Program Files</strong> folder exist in only the (32 Bit machine) or also has the <strong>Program Files (x86)</strong> folder (64 Bit machine). </p>
  
  <p>What is the best way to do it via my code?</p>
  
  <p>my application that i need on the machine is Wireshark that can install on both 32 and 64 bit (in the appropriate Program Files folder) and i am not sure what to do because i am making installer file with Wireshark inside and try to find the best option to know what to install. </p>