title: How to make my program run as administrator - Delphi xe5
body: <p>I am trying to write my software so that it has administrator rights. Because it has to create files and be able to delete them, But if it is not started by right clicking on it, and clicking on run as administrator it is blocked from doing so.</p>
  
  <p>Any solution would be great.</p>
  
  <p>I did manage to find the following pages. But cannot make sense of it:</p>
  
  <ul>
  <li><a href="http://www.delphipages.com/forum/showthread.php?t=209066" rel="nofollow noreferrer">Run application with admin rights</a><br /></li>
  <li><a href="http://www.codeproject.com/Questions/500439/HowplustoplusgiveplusAdministratorplusRightsplusto" rel="nofollow noreferrer">How to give Administrator Rights to code?</a><br /></li>
  <li><a href="https://stackoverflow.com/questions/1168571/run-code-as-a-different-user-c">Run Code as a different user (C#)</a></li>
  </ul>
  
  <p><strong>Update</strong></p>
  
  <p>I'm trying to read files from the program files directory, and write them elsewhere. </p>