CSharp: Introduced App.manifest, the program runs the configuration method under Win7 with administrator privileges

Source: Internet
Author: User

https://msdn.microsoft.com/en-us/library/windows/desktop/hh848036 (v=vs.85). aspx

https://msdn.microsoft.com/en-us/library/windows/apps/ff769509 (v=vs.105). aspx

<?xml version= "1.0" encoding= "Utf-8"? ><asmv1:assembly manifestversion= "1.0" xmlns= "urn: Schemas-microsoft-com:asm.v1 "xmlns:asmv1=" urn:schemas-microsoft-com:asm.v1 "xmlns:asmv2=" urn: Schemas-microsoft-com:asm.v2 "xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance "> <assemblyidentity version= "1.0.0.0" name= "Myapplication.app"/> <trustinfo xmlns= "Urn:schemas-microsoft-com:asm.v2" > <            security> <requestedprivileges xmlns= "Urn:schemas-microsoft-com:asm.v3" > <!--UAC inventory options        If you want to change the Windows user Account Control level, replace the requestedExecutionLevel node with one of the following nodes. <requestedexecutionlevel level= "AsInvoker" uiaccess= "false"/> <requestedexecutionlevel level= "requireAd            Ministrator "uiaccess=" false "/> <requestedexecutionlevel level=" highestavailable "uiaccess=" false "/>                       If you want to use file and registry virtualization to provide backward compatibility, remove the requestedExecutionLevel node. Then check "Enable ClickOnce Se" in "Security"Curity Settings ", recompile is OK. Http://www.codeproject.com/Tips/627850/ClickOnce-deployment-vs-requestedExecutionLevel-eq <requestede Xecutionlevel level= "AsInvoker" uiaccess= "false"/>---<requestedexecutionlevel level= "Requireadministrat or "uiaccess=" false "/> </requestedPrivileges> <applicationRequestMinimum> <defaultasse Mblyrequest permissionsetreference= "Custom"/> <permissionset class= "System.Security.PermissionSet" version= " 1 "unrestricted=" true "id=" Custom "samesite=" site "/> </applicationRequestMinimum> <curity> </t Rustinfo></asmv1:assembly>

  

CSharp: Introduced App.manifest, the program runs the configuration method under Win7 with administrator privileges

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.