配置强制安装的 Web 应用列表
支持的版本
- 在 Windows 和 macOS 上自 80 或更高版本起
描述
设置策略指定无提示安装且无需用户交互的 Web 应用列表。 用户无法关闭策略或卸载这些 Web 应用。
策略的每个列表项都是具有强制成员的对象:url(要安装的 web 应用的 URL)
和 6 个可选成员:
default_launch_container (Web 应用的打开方式 - 新选项卡是默认)
create_desktop_shortcut(如果要创建 Linux 和 Microsoft Windows 桌面快捷方式,则为 true)。
fallback_app_name (从 Microsoft Edge 版本 90 开始,如果应用名称不是渐进式 Web 应用 (PWA) ,则允许你永久替代应用名称,或者,如果需要身份验证,则暂时替代应用名称,然后才能完成安装。 如果同时提供 custom_name 和 fallback_app_name,则将忽略后者。)
custom_name (从所有桌面平台上的 Microsoft Edge 版本 112 开始,可以永久替代所有 Web 应用和 PWA.)
custom_icon (从所有桌面平台上的 Microsoft Edge 版本 112 开始,可以覆盖已安装应用的应用图标。图标必须是正方形、最大大小为 1 MB 且格式为以下格式之一:jpeg、png、gif、webp、ico。哈希值必须是图标文件的 SHA256 哈希。应无需身份验证即可访问 URL,以确保可以在应用安装时使用该图标。)
install_as_shortcut (从 Microsoft Edge 版本 107) 开始。 如果启用,给定 URL 将作为快捷方式安装,就像通过“创建快捷方式...”桌面浏览器 GUI 中的 选项。 请注意,当作为快捷方式安装时,如果 URL 中的清单发生更改,则不会更新它。 如果禁用或取消设置,则会正常安装位于给定 URL 的 Web 应用。 (Microsoft Edge.) 目前不支持此功能
支持的功能
- 可以强制:是
- 可以推荐:否
- 动态策略刷新:是
- 按配置文件:是
- 适用于使用Microsoft帐户登录的配置文件:否
数据类型
- Dictionary
Windows 信息和设置
组策略 (ADMX) 信息
- GP 唯一名称:WebAppInstallForceList
- GP 名称:配置强制安装的 Web 应用列表
- GP 路径 (强制) :管理模板/Microsoft Edge
- GP 路径(推荐):不适用
- GP ADMX 文件名:MSEdge.admx
示例值
[{"create_desktop_shortcut": true, "default_launch_container": "window", "url": "https://www.contoso.com/maps"}, {"default_launch_container": "tab", "url": "https://app.contoso.edu"}, {"default_launch_container": "window", "fallback_app_name": "Editor", "url": "https://app.contoso.edu/editor"}, {"custom_name": "Spreadsheets", "default_launch_container": "window", "install_as_shortcut": true, "url": "https://app.contoso.edu/sheets"}, {"custom_icon": {"hash": "c28f469c450e9ab2b86ea47038d2b324c6ad3b1e9a4bd8960da13214afd0ca38", "url": "https://mydomain.example.com/sunny_icon.png"}, "url": "https://weather.example.com"}]
注册表设置
- 路径(强制):SOFTWARE\Policies\Microsoft\Edge
- 路径(推荐):不适用
- 值名称:WebAppInstallForceList
- 值类型:REG_SZ
示例注册表值
[{"create_desktop_shortcut": true, "default_launch_container": "window", "url": "https://www.contoso.com/maps"}, {"default_launch_container": "tab", "url": "https://app.contoso.edu"}, {"default_launch_container": "window", "fallback_app_name": "Editor", "url": "https://app.contoso.edu/editor"}, {"custom_name": "Spreadsheets", "default_launch_container": "window", "install_as_shortcut": true, "url": "https://app.contoso.edu/sheets"}, {"custom_icon": {"hash": "c28f469c450e9ab2b86ea47038d2b324c6ad3b1e9a4bd8960da13214afd0ca38", "url": "https://mydomain.example.com/sunny_icon.png"}, "url": "https://weather.example.com"}]
扩展的示例注册表值
[
{
"create_desktop_shortcut": true,
"default_launch_container": "window",
"url": "https://www.contoso.com/maps"
},
{
"default_launch_container": "tab",
"url": "https://app.contoso.edu"
},
{
"default_launch_container": "window",
"fallback_app_name": "Editor",
"url": "https://app.contoso.edu/editor"
},
{
"custom_name": "Spreadsheets",
"default_launch_container": "window",
"install_as_shortcut": true,
"url": "https://app.contoso.edu/sheets"
},
{
"custom_icon": {
"hash": "c28f469c450e9ab2b86ea47038d2b324c6ad3b1e9a4bd8960da13214afd0ca38",
"url": "https://mydomain.example.com/sunny_icon.png"
},
"url": "https://weather.example.com"
}
]
Mac 信息和设置
- 首选项项名称:WebAppInstallForceList
- 示例值:
<key>WebAppInstallForceList</key>
<array>
<dict>
<key>create_desktop_shortcut</key>
<true/>
<key>default_launch_container</key>
<string>window</string>
<key>url</key>
<string>https://www.contoso.com/maps</string>
</dict>
<dict>
<key>default_launch_container</key>
<string>tab</string>
<key>url</key>
<string>https://app.contoso.edu</string>
</dict>
<dict>
<key>default_launch_container</key>
<string>window</string>
<key>fallback_app_name</key>
<string>Editor</string>
<key>url</key>
<string>https://app.contoso.edu/editor</string>
</dict>
<dict>
<key>custom_name</key>
<string>Spreadsheets</string>
<key>default_launch_container</key>
<string>window</string>
<key>install_as_shortcut</key>
<true/>
<key>url</key>
<string>https://app.contoso.edu/sheets</string>
</dict>
<dict>
<key>custom_icon</key>
<dict>
<key>hash</key>
<string>c28f469c450e9ab2b86ea47038d2b324c6ad3b1e9a4bd8960da13214afd0ca38</string>
<key>url</key>
<string>https://mydomain.example.com/sunny_icon.png</string>
</dict>
<key>url</key>
<string>https://weather.example.com</string>
</dict>
</array>