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

יום שני, אוקטובר 13, 2008

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="1.0.0.0" processorArchitecture="X86" name="someExecName" type="win32" /> <description>Program description</description> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level="requireAdministrator" /> ...
5 תגובות