desktop:ExecutionAlias

要从命令提示符激活的 UWP 应用的可执行文件。

Element Hierarchy

<包>

     <应用程序>

          <应用程序>

               <扩展>

                    <uap3:Extensions>

                        <uap3:AppExecutionAlias>

                              <desktop:ExecutionAlias>

Syntax

<desktop:ExecutionAlias
    Alias = 'An executable in the form of a string followed by ".exe".'
    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.' >

    <!-- Child elements -->
    desktop10:SupportedProtocols

</desktop:ExecutionAlias>

属性和元素

Attributes

Attribute Description Data type Required Default value Default value
Alias UWP 应用可执行文件的名称。 字符串后跟的 .exe可执行文件。 Yes
uap8:AllowOverride 一个值,该值指示是否重写 UWP 应用可执行文件。 布尔值。 No
desktop10:UseDesktopChangeRouter 调试器应用程序用于在调试 Windows 资源管理器进程时避免文件对话框死锁。 布尔值。 No
desktop10:DropTarget The CLSID of an object, usually a local server rather than an in-process server, that implements IDropTarget. By default, when the drop target is an executable file and no value is provided for DropTarget, the shell converts the list of dropped files into a command-line parameter and passes it to ShellExecuteEx in the lpParameters parameter. 格式为 xxxxxxxx-xxxx-xxxx-xxxx-xxxx-xxx 的 GUID。 No
desktop10:UseUrl 如果设置为 true,则指定应用程序可以在命令行上接受 URL 而不是文件名。 可以直接从 Internet 打开文档的应用程序(如 Web 浏览器和媒体播放器)应使用此值。 When ShellExecuteEx starts an application and this value is set to false, the default behavior, ShellExecuteEx downloads the document to a local file and invokes the handler on the local copy. 布尔值。 No
desktop10:EnvironmentPath 一个字符串,其中包含一个以分号分隔的目录列表,用于指定应用程序可执行文件的完全限定路径。 The value is appended to the PATH environment variable when an application is launched with a call to ShellExecuteEx. 一个长度介于 1 到 32767 个字符之间的字符串,其开头和结尾具有非空格字符。 No

Child elements

Child element Description
desktop10:SupportedProtocols 指定给定密钥支持的 URL 协议方案。

Parent elements

Parent element Description
uap3:AppExecutionAlias 声明应用的别名扩展点。

Remarks

desktop10 命名空间中的属性和子元素仅在指定 CompatMode=“classic”的扩展实例上受支持,并且仅在桌面 SKU 上受支持。

Requirements

Item Value
Namespace http://schemas.microsoft.com/appx/manifest/foundation/windows10
uap8 http://schemas.microsoft.com/appx/manifest/uap/windows10/8
desktop10 http://schemas.microsoft.com/appx/manifest/desktop/windows10/10
最低 OS 版本 Windows 10 版本 1607(内部版本 14393)