<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="<AppName>" type="win32"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
將上面的copy下來檔存成.manifest, 然後開啟VS2005, 依下面步驟
- Open your project in Microsoft Visual Studio 2005.
- Under Project, select Properties.
- In Properties, select Manifest Tool, and then select Input and Output.
- Add in the name of your application manifest file under Additional manifest files.
- Rebuild your application.
沒有留言:
張貼留言