desktop7:ApprovedShellExtension

指定安裝時,應該將殼層延伸模組新增至核准的殼層延伸模組清單。

元素階層

<套件>

    <應用程式>

         <應用程式>

              <擴充功能>

                   <desktop7:Extension>

                        <desktop7:ApprovedShellExtension>

Syntax

<desktop7:ApprovedShellExtension
  Name = 'A string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
  Clsid = 'A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.' />

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
名稱 Shell 延伸模組的描述性名稱。 系統實際上不會直接使用此值,但可讓您更輕鬆地讀取登錄中的專案。 長度介於 1 到 32767 個字元之間的字串,其開頭和結尾具有非空白字元。 Yes
Clsid 實作 Shell 擴充功能的 COM 類別 Clsid。 格式為 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx 的 GUID。 Yes

子元素

無。

父元素

父元素 描述
副檔名 定義應用程式的擴充點。

備註

重要

註冊核准的殼層延伸模組需要安裝程式具有系統管理許可權,如 註冊殼層延伸模組處理常式中所述。

MSIX 應用程式沒有自訂安裝程式,而且使用者無法以系統管理員身分手動執行。 相反地,使用 desktop7:ApprovedShellExtension 元素的 MSIX 型應用程式必須將 desktop7:Scope 資訊清單屬性設定為 電腦 (的值,這會提示使用者在安裝期間提高許可權) 。 您可以在desktop:Extension元素上設定desktop7:Scope屬性。

同樣重要的是,若要將 desktop7:Scope 屬性設定為 電腦,您的應用程式套件必須宣告自訂功能 <uap4:CustomCapability Name="Microsoft.classicAppCompatElevated_8wekyb3d8bbwe"/> 。 該自訂功能只會授與一組有限的應用程式。

殼層延伸模組會與透過封裝 COM (windows.comServer 公開的資訊清單中的 COM 類別搭配使用;請參閱 com:ComServer) 。 該 COM 類別會當做 殼層延伸模組處理常式 (,例如 DesktopPropertyHandlerThumbnailHandler) 。 該資訊適用于您可以在應用程式套件資訊清單中宣告的所有殼層延伸模組。

註冊殼層延伸模組處理常式中所述,當機器上的系統管理員開啟Key EnforceShellExtensionSecurity時,是否要關閉殼層延伸模組,包括或不包含desktop7:ApprovedShellExtension元素的影響。

規格需求

Item
命名空間 http://schemas.microsoft.com/appx/manifest/desktop/windows10/7
OS 最低版本 Windows 10 (組建 19645)