将应用设置为需要提升? [英] Set app to require elevation?

查看:150
本文介绍了将应用设置为需要提升?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我们的一些产品使用新安装程序的引导应用程序。到目前为止,我一直依靠我在某处阅读的两件事情:


  1. 名称包含setup


  2. b p>最近的测试发现这些语句中的一个或两个都是false,因为我启动的应用程序之一是需要提升的第三方安装程序,并且由于提升要求而失败。



    如何将我的应用程序设置为需要提升?我知道它与清单文件有关。因为我在Visual Studio 2008中工作,并生成清单文件,我想知道什么进入项目的属性和在哪里需要提升。

    解决方案

    当我找不到应用程序清单作为一个新的项目,可以添加到我的项目,我进入在线帮助,发现这:


    在配置属性 - 链接器 - 清单文件 - UAC执行级别(requireAdministrator)中配置VS2008


    这样做了。


    I'm working on the bootstrap application of a new installer for some of our products. So far, I've been relying on two things that I read about somewhere:

    1. Applications whose name contains "setup" or "install" will run elevated by default.
    2. Applications that run elevated will launch other applications in elevated mode.

    Recent testing has found that one or both of these statements is false, because one of the applications that I'm launching is a third party installer that requires elevation, and it's failing because of the elevation requirement.

    How do I set my application to require elevation? I know it has something to do with the manifest file. As I'm working in Visual Studio 2008, and the manifest file is generated, I'd like to know what to enter into the project's properties and where to make it require elevation.

    解决方案

    When I couldn't find application manifest as a new item that could be added to my project, I went into the online help and found this:

    configure the VS2008 in Configuration Properties - Linker - Manifest File - UAC Execution Level (requireAdministrator)

    That did the trick.

    这篇关于将应用设置为需要提升?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆