設定強制安裝的網頁應用程式清單
- 原則 ID
- WebAppInstallForceList
- 適用範圍
- 電腦設定、使用者設定
- 支援的作業系統
- Microsoft Windows 7 以上版本
- 來源
- Google Chrome Policy Templates (版本 156.0.8078.80)
- 類別
- Google › Google Chrome
說明
你可以透過這項政策指定要無訊息安裝的網頁應用程式清單 (使用者不用操作),使用者無法解除安裝或停用這些網頁應用程式。
這項政策的每個清單項目都是一個物件,由下列必要元素組成:
url (安裝網頁應用程式的網址)
6 個選擇性元素:
- default_launch_container
(設定網頁應用程式的開啟方式,預設值是在新分頁中開啟)
- create_desktop_shortcut
(如要建立 Linux 和 Microsoft® Windows® 桌面捷徑,請設為 True)。
- fallback_app_name
(適用於 Google Chrome 90 以上版本,可覆寫非漸進式網頁應用程式 (PWA) 的應用程式名稱,或是針對必須完成驗證才能暫時安裝的 PWA 覆寫應用程式名稱。如果同時提供 custom_name 和 fallback_app_name,後者會被忽略)。
- custom_name
(適用於 Google ChromeOS 99 以上版本和所有其他電腦作業系統上的 112 以上版本,可永久覆寫所有網頁應用程式和 PWA 的應用程式名稱)。
- custom_icon
(適用於 Google ChromeOS 99 以上版本和所有其他電腦作業系統上的 112 版本,可覆寫安裝版應用程式的應用程式圖示。圖示必須為正方形,大小不得超過 1 MB,且採用以下其中一種格式:jpeg、png、gif、webp、ico。雜湊值必須是圖示檔案的 SHA256 雜湊。url 必須不用驗證就能存取,確保在圖示可在安裝應用程式時使用。)
- install_as_shortcut
(適用於 Google Chrome 107 以上版本)。如果啟用的話,系統就會以捷徑的形式安裝指定的 url,就像使用電腦版瀏覽器 GUI 的「建立捷徑...」選項安裝網頁應用程式一樣。
請注意,如果以捷徑的形式安裝,系統不會在 url 的資訊清單變更時更新網頁應用程式。
如果停用或未設定,系統會正常安裝指定 url 的網頁應用程式。
如要將應用程式固定到 Google ChromeOS 檔案櫃,請參閱 PinnedLauncherApps 政策。
如要進一步瞭解架構和格式設定,請參閱 https://chromeenterprise.google/policies/?policy=WebAppInstallForceList。
範例值:
[
{
"create_desktop_shortcut": true,
"default_launch_container": "window",
"url": "https://www.google.com/maps"
},
{
"default_launch_container": "tab",
"url": "https://docs.google.com"
},
{
"default_launch_container": "window",
"fallback_app_name": "Editor",
"url": "https://docs.google.com/editor"
},
{
"custom_name": "My important document",
"default_launch_container": "window",
"install_as_shortcut": true,
"url": "https://docs.google.com/document/d/ds187akjqih89"
},
{
"custom_icon": {
"hash": "c28f469c450e9ab2b86ea47038d2b324c6ad3b1e9a4bd8960da13214afd0ca38",
"url": "https://mydomain.example.com/sunny_icon.png"
},
"url": "https://weather.example.com"
}
]