desktop6:UninstallActions
说明
指定在用户卸载桌面应用程序时运行的安装程序文件 .exe
(或 .msi
) 。
注意
此元素目前仅供打包在 MSIXVC 容器中的桌面电脑游戏使用。 它需要 customInstallActions受限功能。
元素层次结构
<desktop6:UninstallActions>
语法
<desktop6:UninstallActions>
<!-- Child elements -->
desktop6:UninstallAction{0,100}
</desktop6:UninstallActions>
密钥
{}
特定出现次数范围
特性和元素
特性
无。
子元素
子元素 | 描述 |
---|---|
UninstallAction | 指定在用户卸载桌面应用程序时运行的安装程序文件 (.exe 或 .msi) 。 |
父元素
父元素 | 描述 |
---|---|
desktop6:CustomInstall | 使桌面应用程序能够指定随桌面应用程序一起安装的一个或多个附加安装程序文件 (.exe 或 .msi) 。 |
注解
此元素需要 customInstallActions受限功能。
示例
<Package
xmlns:desktop6="http://schemas.microsoft.com/appx/manifest/desktop/windows10/6"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="rescap desktop6">
<!-- ... -->
<!-- Other entries omitted for brevity. -->
<!-- ... -->
<Extensions>
<desktop6:Extension Category="windows.customInstall">
<desktop6:CustomInstall Folder="MyInstallers">
<desktop6:InstallActions>
<desktop6:InstallAction File="Setup_AntiCheat.exe" Name="AC_1" Arguments="/add /silent" />
</desktop6:InstallActions>
<desktop6:RepairActions>
<desktop6:RepairAction File="Setup_AntiCheat.exe" Name="AC_1" Arguments="/add /silent /force" />
</desktop6:RepairActions>
<desktop6:UninstallActions>
<desktop6:UninstallAction File="Setup_AntiCheat.exe" Name="AC_1" Arguments="/remove /silent" />
</desktop6:UninstallActions>
</desktop6:CustomInstall>
</desktop6:Extension>
</Extensions>
<Capabilities>
<rescap:Capability Name="customInstallActions"/>
</Capabilities>
</Package>
要求
项 | 值 |
---|---|
命名空间 | http://schemas.microsoft.com/appx/manifest/desktop/windows10/6 |
Minimum OS Version | Windows 10版本 1903 (内部版本 18362) |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈