desktop6:RepairActions
指定當使用者在傳統型應用程式的 [設定] 頁面中選取修復或重設選項時所執行的安裝程式檔案 (.exe 或 .msi) 。
注意
此元素目前僅供 MSIXVC 容器中封裝的桌上型電腦遊戲使用。 它需要 customInstallActions受限制的功能。
元素階層
<desktop6:RepairActions>
Syntax
<desktop6:RepairActions>
<!-- Child elements -->
desktop6:RepairAction{0,100}
</desktop6:RepairActions>
答案
{}
特定出現次數範圍
屬性和元素
屬性
無。
子元素
子項目 | 描述 |
---|---|
RepairAction | 指定當使用者在傳統型應用程式的 [設定] 頁面中選取修復或重設選項時所執行的安裝程式檔案 (.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>
規格需求
Item | 值 |
---|---|
命名空間 | http://schemas.microsoft.com/appx/manifest/desktop/windows10/6 |
OS 最低版本 | Windows 10版本 1903 (組建 18362) |
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應