title: How to restart my application in admin rights in C#
body: <p>I realise something that when I restart my application (with code), it does not restart with admin rights. When I start my app by double clicking, it ask me that you want to run it as an admin and I say yes. But after that I need to restart my application programmatically and it has to restart as also admin but it does not.</p>
  
  <p>I use simply this code to restart</p>
  
  <pre><code>        Application.Restart();
  </code></pre>
  
  <p>and I added the following line to my app manifest file</p>
  
  <pre><code>  &lt;requestedExecutionLevel  level="requireAdministrator" uiAccess="false" /&gt; 
  </code></pre>
  
  <p><strong>Edit:</strong> I am not looking for using Progress class to restart. can I do it with Application.Restart? </p>
  
  <p>We made a management console and we have plugins and plugins are needed to be updated. Thats why I have to delete the old dlls to upgrade but I receive errors when I try and I believe it is because the program does not have administrator permissions.</p>