如何:配置 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