title: How to grant the permissions on Install Directory with NSIS?
body: <p>I am new to NSIS commands. I have a installer file and I am granting the <code>GenericRead</code> and <code>GenericWrite</code> permissons on my InstallDir.</p>
  
  <p>Below is the code:</p>
  
  <p>AccessControl::GrantOnFile "$INSTDIR\WPFUI" "(BU)" "GenericRead + GenericWrite"</p>
  
  <p>Now problem is: any non admin user can copy new files and dlls in my install directory.</p>
  
  <p>I want to set the required permission which requires admin rights to copy any new files.</p>
  
  <p>I've tried my luck with <code>GenericRead + GenericExecute</code> but still does not work.</p>
  
  <p>Could someone please throw any light on this?</p>