2

Possible Duplicate:
How to force C# App to run as administrator on Windows 7

Hi, is it possible to set the "run as Admin" during installation or when the app fist runs can it check to see if this property is set? and if not set it so future runs are as admin?

hope that makes sense

Community
  • 1
  • 1
RTFS
  • 115
  • 1
  • 10
  • 1
    You can try putting "update" or "setup" in the filename or program description - this causes UAC to require admin permissions even if the program doesn't really need them. – Niet the Dark Absol Nov 27 '10 at 14:23
  • 3
    dup: http://stackoverflow.com/questions/2818179/how-to-force-c-app-to-run-as-administrator-on-windows-7 – Ovi Tisler Nov 27 '10 at 14:24
  • I found it out the hard way when programming a Live Update program for my site, that keeps users updated on activity :D I had to just call it LU instead. – Niet the Dark Absol Nov 27 '10 at 14:28
  • Cool, I don't seem to be able to mark you answer as accepted! is that because its a comment? – RTFS Nov 27 '10 at 14:37
  • Also thanks OTisler sorry for the dup, the link you gave also seems to work by adding the line to the Manifest. so from not knowing how to do it to two answers. think I'm going to like Stackoverflow! – RTFS Nov 27 '10 at 14:40

0 Answers0