zoukankan      html  css  js  c++  java
  • VS2010设置程序启动用管理员模式

    效果:提示需要管理员权限

    image

    1.打开工程,然后右击工程在菜单中选择properties,然后在security标签页下将Enable ClickOnce security settings勾上,然后选择This is a full trust application,然后编译程序就ok了!

    image

    2.sorry,上面是”5.编辑”,难得改图了.

    3.改模式文档app.manifest中,asInvoker –> requireAdministrator

    <!-- UAC 清单选项
                如果要更改 Windows 用户帐户控制级别,请用以下节点之一替换 
                requestedExecutionLevel 节点。
    
    
            <requestedExecutionLevel  level="asInvoker" uiAccess="false" />
            <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
            <requestedExecutionLevel  level="highestAvailable" uiAccess="false" />
    
    
                指定 requestedExecutionLevel 节点将会禁用文件和注册表虚拟化。
                如果要利用文件和注册表虚拟化实现向后 
                兼容性,则删除 requestedExecutionLevel 节点。
    -->
            <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
    
    
  • 相关阅读:
    【CCF】高速公路 tarjan强连通缩点
    【hihocoder】欧拉路径 并查集判连通
    【CCF】地铁修建 改编Dijkstra
    Android仿微信朋友圈图片展示实现
    android 禁止 recycler 滑动
    android中关闭软键盘
    java Math.pow 精度丢失问题
    Centos查看端口占用情况和开启端口命令
    centos 部署 php
    php undefinde function json_decode()
  • 原文地址:https://www.cnblogs.com/tangge/p/2757123.html
Copyright © 2011-2022 走看看