clickonce 部署能cs程序_配置 ClickOnce 信任提示行为 - Visual Studio | Microsoft Docs

本文详细介绍了如何配置ClickOnce信任提示行为,以控制最终用户安装和运行ClickOnce应用程序时的信任选项。提供了通过注册表编辑器和编程方式启用、限制或禁用信任提示的方法,并列出了各安全区域的默认行为。
摘要由CSDN通过智能技术生成

如何:配置 ClickOnce 信任提示行为How to: Configure the ClickOnce trust prompt behavior

11/04/2016

本文内容

您可以配置 ClickOnce 信任提示,以控制最终用户是否提供安装 ClickOnce 应用程序的选项,例如 Windows 窗体应用程序、Windows Presentation Foundation 应用程序、控制台应用程序、WPF 浏览器应用程序和 Office 解决方案。You can configure the ClickOnce trust prompt to control whether end users are given the option of installing ClickOnce applications, such as Windows Forms applications, Windows Presentation Foundation applications, console applications, WPF browser applications, and Office solutions. 可以通过在每个最终用户的计算机上设置注册表项来配置信任提示。You configure the trust prompt by setting registry keys on each end user's computer.

下表显示了可应用于每个 (Internet、UntrustedSites、MyComputer、LocalIntranet 和 TrustedSites) 的五个区域的配置选项。The following table shows the configuration options that can be applied to each of the five zones (Internet, UntrustedSites, MyComputer, LocalIntranet, and TrustedSites).

选项Option

注册表设置值Registry setting value

说明Description

启用信任提示。Enable the trust prompt.

Enabled

显示 ClickOnce 信任提示,以便最终用户能够向 ClickOnce 应用程序授予信任。The ClickOnce trust prompt is display so that end users can grant trust to ClickOnce applications.

限制信任提示。Restrict the trust prompt.

AuthenticodeRequired

仅当 ClickOnce 应用程序使用标识发布者的证书进行签名时,才会显示 ClickOnce 信任提示。The ClickOnce trust prompt is only displayed if ClickOnce applications are signed with a certificate that identifies the publisher.

禁用信任提示。Disable the trust prompt.

Disabled

对于未使用显式信任的证书进行签名的任何 ClickOnce 应用程序,不会显示 ClickOnce 信任提示。The ClickOnce trust prompt is not displayed for any ClickOnce applications that are not signed with an explicitly trusted certificate.

下表显示了每个区域的默认行为。The following table shows the default behavior for each zone. "应用程序" 列是指 Windows 窗体应用程序、Windows Presentation Foundation 应用程序、WPF 浏览器应用程序和控制台应用程序。The Applications column refers to Windows Forms applications, Windows Presentation Foundation applications, WPF browser applications, and console applications.

区域Zone

应用程序Applications

Office 解决方案Office solutions

MyComputer

Enabled

Enabled

LocalIntranet

Enabled

Enabled

Trust

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值