title: How to make the msi overwrite program if a previous version exist?
body: <p>I am using Visual Studio 2010, I am working on a windows application and while trying to make an automatic updater for it faced a serious problem.</p>
  
  <p>When the program find a new version and trying to install it, it couldn't because of two reasons:</p>
  
  <p><strong>1</strong>- the application is exist in my program files. so that window appears 
  <img src="https://i.stack.imgur.com/e5IBh.jpg" alt="enter image description here"></p>
  
  <p><strong>2</strong>- the application is already opened "<code>the form that performed the update process</code>".</p>
  
  <p>The problem doesn't have any relation with the version number.</p>
  
  <p>It's about the program existence and the ability to install a new version although the previous version is opened.</p>