1

Before I begin, I am aware of this answer but this did not work for me.

My question is simple, I am making an application that changes some files and makes some folders. It was all working great, but since today my application wants admin rights. I didn't enable this anywhere. I have tried adding an app.manifest file which says:

  <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
  <requestedExecutionLevel level="asInvoker" uiAccess="false" />
  </requestedPrivileges>

I tried rebuilding, cleaning and then building, but still it wants admin rights. Anything I'm missing?

Community
  • 1
  • 1
HoloLady
  • 1,041
  • 1
  • 12
  • 28

1 Answers1

1

Two more check which you can do>> Right click on your exe file and go to the compatibility tab and check if "Run as administrator is checked"

check in registry under HKLM if there exists any key(which contains your application location) at location SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

amit dayama
  • 3,246
  • 2
  • 17
  • 28
  • Thank you again for helping, Run as administrator isn't checked, and I couldn't find any mention of my program in the registry you mentioned. – HoloLady Sep 15 '15 at 09:46