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