"Run as Administrator" – Run an application in Vista with Administrator rights using app.manifest

13 באוקטובר 2008

5 תגובות

With the new version of Microsoft's Windows Vista – you and me as a
software developer confronted with the problem of "How to run the
application with Administrative rights under VISTA – a decision use app.manifest file with follow configurations.

Just add new item "Application Manifest File" into your project and replace all to this one. (See below)

<?xml version="1.0" encoding="utf-8" ?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" >
<assemblyIdentity version=""
type="win32" />
<description>Program description</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="requireAdministrator" />



הוסף תגובה
facebook linkedin twitter email

כתיבת תגובה

האימייל לא יוצג באתר. שדות החובה מסומנים *

5 תגובות

  1. Neelakandan28 באפריל 2009 ב 13:02

    Excellent Post. Thank you so much.

  2. Jeroen9 בדצמבר 2009 ב 17:39

    Cheers, was looking for exactly this.

  3. Dan M30 בספטמבר 2010 ב 21:39

    This doesn't work for OneClick applications. Upon running Setup.exe users will see "Execution level requested by this application is not supported". According to a post in MSDN forums this isn't supported. That is so frustrating to me because I'm updating our Test Tool that needs to modify the hosts file for tests to run properly.

  4. Joshua28 במרץ 2012 ב 3:15

    Yeah, it happens sometimes … Nothing special.

  5. icon downloads22 בספטמבר 2012 ב 10:45

    I am sorry, that has interfered… I understand this question. Let's discuss.

    P.S. Please review Green Medical Icons from yourmailkept