操作方法

操作方法:配置 ArcGIS Pro Chromium WebView2 控件以使用 WebView2 Evergreen Runtime

Last Published: May 8, 2024

描述

Note:
Beginning at version 3.3, ArcGIS Pro has switched entirely to leveraging the Microsoft Edge WebView2 Runtime and will no longer install a Fixed Version during the application setup process, making this workflow valid for ArcGIS Pro version 2.9 through 3.2 only.
If the Microsoft Edge WebView2 Runtime is not already installed on your machine, it can be downloaded using the Evergreen Bootstrapper or Evergreen Standalone Installer from Microsoft.

关于 WebView2
自 2.9 版本起,ArcGIS Pro 开始采用 Microsoft Edge WebView2 在应用程序用户界面中呈现 HTML 和 JavaScript 内容。 WebView2 控件使用 Microsoft Edge (Chromium) 作为处理和渲染此类内容的引擎。

WebView2 Runtime 分布
Microsoft Edge WebView2 的运行依赖于计算机上安装的相应运行时环境。 该运行时包含了 WebView2 用以处理 HTML 和 JavaScript 内容的 Chromium 浏览器代码。 WebView2 运行时存在两种发行版本:修正版本和 Evergreen。 默认情况下,ArcGIS Pro 使用修正版本,但可以配置为使用 Evergreen。

  • 修正版本运行时(默认)ArcGIS Pro 在每次安装时均会包含 WebView2 修正版本运行时,并默认启用此版本。 该运行时被安装在 \ArcGIS\Pro\bin 路径下的 WebView 文件夹内。 此版本的运行时会随着 ArcGIS Pro 新版本的安装而更新,包括那些包含 WebView2 更新的 ArcGIS Pro 修补程序版本。
  • Evergreen Runtime(可选)Microsoft 提供了另一种名为 WebView2 Evergreen Runtime 的发行版本。 这是在计算机上独立于 ArcGIS Pro 安装的软件。 由于其为独立安装,因此您无需等待 ArcGIS Pro 更新即可将其升级至最新版本。 您可以从 Microsoft Edge WebView2 主页下载 WebView2 Evergreen Runtime。 如果系统提示您选择下载的架构,请选择“x64”选项。

解决方案或解决方法

配置 ArcGIS Pro 以使用 WebView2 Evergreen 模式

Warning:
The instructions below include making changes to essential parts of your operating system. It is recommended that you backup your operating system and files, including the registry, before proceeding. Consult a qualified computer systems professional, if necessary.

Esri cannot guarantee results from incorrect modifications while following these instructions. Therefore, use caution and proceed at your own risk.
Note:
The following procedure modifies the HKEY_LOCAL_MACHINE portion of the Windows registry, and requires Administrator permission to complete.
  1. 确认计算机上已安装 Evergreen Runtime。 您应该能够在“控制面板”的程序和功能部分找到名为 Microsoft Edge WebView2 Runtime 的条目。
  2. 关闭所有打开的 ArcGIS Pro 实例。
  3. 打开 Windows 注册表编辑器 (regedit.exe),并浏览到以下文件夹:
HKEY_ LOCAL_MACHINE\Software\ESRI\ArcGISPro\Settings
    • 如果该计算机从未安装过 ArcGIS Pro,则此文件夹可能不存在。
  1. 创建新的 DWORD(32 位)值,并将其命名为 WebViewEvergreenMode
  2. 编辑新创建的注册表值,将值数据从 0 更改为 1。
  3. 关闭 regedit.exe 并启动 ArcGIS Pro。 此时,ArcGIS Pro 将使用已安装的 Evergreen Runtime,而非随其一同安装的修正版本运行时。

要切换回修正版本运行时,可在注册表编辑器中将 WebViewEvergreenMode 的值从 1 改为 0,或直接删除 WebViewEvergreenMode 值项。

文章 ID: 000026540

获得人工智能支持

使用 Esri Support AI Chatbot 快速解决您的问题。

立即开始聊天

相关信息

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

立即开始聊天

转至下载选项