locked
Issue about UAC RRS feed

  • Question

  • If I run an application which UAC think needs a administrator privilege, it will ask me for the password of Administrator.
    But sometimes I just want to run the program without administrator privilege even it may crash later. What should I do? To disable UAC?
    Sunday, February 17, 2008 11:15 AM

Answers

  • If you are writing this application, you should consider embedding a manifest declaring a requestedExecutionLevel of "asInvoker" into the application's exe.

    Here are a few articles that may help explain how you would go about doing that.
    http://msdn2.microsoft.com/en-us/library/bb756929.aspx
    http://msdn2.microsoft.com/en-us/library/bb206295.aspx

    If you are using an application you didn't write, and you think it shouldn't need administrative privileges, contact the developer for the application and make them aware of the problem.

    Alternatively, you can sometimes write a manifest, as above,  but instead of embedding it in application.exe, put it in a file called application.exe.manifest, or try to apply a compatability setting to the exe using the Application Compatability Toolkit
    http://technet.microsoft.com/en-us/appcompat/aa905102.aspx
    http://msdn2.microsoft.com/en-us/library/aa480152.aspx

    Hope this helps.
    Monday, February 18, 2008 12:37 AM

All replies

  • If you are writing this application, you should consider embedding a manifest declaring a requestedExecutionLevel of "asInvoker" into the application's exe.

    Here are a few articles that may help explain how you would go about doing that.
    http://msdn2.microsoft.com/en-us/library/bb756929.aspx
    http://msdn2.microsoft.com/en-us/library/bb206295.aspx

    If you are using an application you didn't write, and you think it shouldn't need administrative privileges, contact the developer for the application and make them aware of the problem.

    Alternatively, you can sometimes write a manifest, as above,  but instead of embedding it in application.exe, put it in a file called application.exe.manifest, or try to apply a compatability setting to the exe using the Application Compatability Toolkit
    http://technet.microsoft.com/en-us/appcompat/aa905102.aspx
    http://msdn2.microsoft.com/en-us/library/aa480152.aspx

    Hope this helps.
    Monday, February 18, 2008 12:37 AM
  • Thanks for your answer....
    Sometimes it's hard to create a manifestation file. For example the application is in a read-only medium.
    I hope there should be a simple mathod to decide weather run a program in administrator privilege, just like that in Windows XP.
    Maybe it will implement in the next version of Windows?

    Yesterday I tried to disable UAC completely. And I found that I couldn't run any application in administrator privilege even if I chose to when I didn't use administrator. It's too bad..
    Monday, February 18, 2008 6:21 AM