Share via


uap8:ExecutionAlias

要從命令提示字元啟動的 UWP app 可執行檔。

元素階層

<套件>

    <應用程式>

         <應用程式>

              <擴充功能>

                   <uap3:Extension>

                        <uap3:AppExecutionAlias>

                             <uap8:ExecutionAlias>

Syntax

<uap8:ExecutionAlias
    Alias = 'A string with a value between 1 and 256 characters in length, that must end with ".exe", and cannot contain the following characters: <, >, :, ", |, ?, or *.'
    uap8:AllowOverride = 'A boolean value.'
    desktop10:UseDesktopChangeRouter = 'A boolean value.'
    desktop10:DropTarget = 'A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.'
    desktop10:UseUrl = 'A boolean value.'
    desktop10:EnvironmentPath = 'A string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
    desktop10:DropTarget = 'A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.' >

    <!-- Child elements -->
    desktop10:SupportedProtocols?
    
</uap8:ExecutionAlias>

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
別名 UWP 應用程式可執行檔的名稱。 長度介於 1 到 256 個字元之間的字串,必須以 .exe 結尾且不能包含下列字元: < 、、 >:"|?* Yes
uap8:AllowOverride 值,指出是否要覆寫 UWP 應用程式可執行檔。 布林值。 No
desktop10:UseDesktopChangeRouter 偵錯工具應用程式用來避免偵錯 Windows 檔案總管進程時發生檔案對話方塊死結。 僅支援指定 CompatMode=「classic」 的擴充實例。 僅支援桌面 SKU。 布林值。 No
desktop10:DropTarget 物件的 CLSID,通常是實作 IDropTarget的本機伺服器,而不是進程伺服器。 根據預設,當置放目標是可執行檔,且DropTarget沒有提供任何值時,殼層會將已卸載檔案的清單轉換成命令列參數,並將它傳遞給lpParameters參數中的ShellExecuteEx 格式為 xxxxxxxx-xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxx 的 GUID。 No
desktop10:UseUrl 如果設定為 true,則指定應用程式可以接受命令列上的 URL,而不是檔案名。 可以直接從網際網路開啟檔的應用程式,例如網頁瀏覽器和媒體播放機,應該使用此值。 當 ShellExecuteEx 啟動應用程式且此值設定為 false 時, 預設行為 ShellExecuteEx 會將檔下載到本機檔案,並在本機複本上叫用處理程式。 布林值。 No
desktop10:EnvironmentPath 字串,包含以分號分隔的目錄清單,指定應用程式可執行檔的完整路徑。 當應用程式以 呼叫 ShellExecuteEx時,值會附加至 PATH 環境變數。 長度介於 1 到 32767 個字元之間的字串,其開頭和結尾為非空白字元。 No

子元素

無。

父元素

父元素 描述
uap3:AppExecutionAlias 指定應用程式的執行別名,以判斷要啟動之應用程式的可執行檔。

備註

desktop10 命名空間中的屬性和子項目僅支援指定 CompatMode="classic" 和僅支援桌面 SKU 的擴充實例。

規格需求

Item
Namespace http://schemas.microsoft.com/appx/manifest/uap/windows10/8
desktop10 http://schemas.microsoft.com/appx/manifest/desktop/windows10/10
OS 最低版本 Windows 10版本 1903 (組建 18362)