[Windows] v1.1.12 安装失败 0x80070643:Add-AppxPackage 无法删除 AppContainer 配置文件 (0x800701C0)
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
Research direction
Start with Register-ShareTarget.ps1 at the reported Add-AppxPackage call on line 147 and inspect how the MSI passes the MSIX path and external location. Reproduce the install failure and determine whether deployment can safely handle the reported orphan AppContainer state. Done means the ShareTarget package registers successfully on the affected Windows setup and the installer completes without rollback.
Written by the indexing model from the issue text.
Description
环境
- Windows 11 家庭中文版,Build 26200(25H2)
- 开发者模式已开启(AllowDevelopmentWithoutDevLicense=1)
- 安装包:WeChatBridge-1.1.12-Windows-Setup.exe(SHA256 b6e95a321f0c02bc3cd187a2a512ed3edc3f46fd38d88871c6c2ad1ee61f60a3)
- 仅 Windows Defender,无第三方杀软
复现步骤
- 双击 WeChatBridge-1.1.12-Windows-Setup.exe
- 等待安装完成
实际结果
- CertificateTrustMsi(证书组件)安装成功(result 0x0)
- WeChatBridgeMsi(主程序)失败:
0x80070643 Failed to configure per-user MSI package - 整体回滚干净(无残留 Appx 包、证书已移除)
关键错误(主 MSI 日志 WeChatBridgeMsi.log,失败点 Register-ShareTarget.ps1 第147行 Add-AppxPackage)
WixQuietExec64: Add-AppxPackage : 部署失败,原因是 HRESULT: 0x80073CF6, 无法注册包。
WixQuietExec64: 错误 0x800701C0: Windows 无法删除 WeChatBridge.Windows.ShareTarget_1.1.12.0_neutral__k2gw8zhv15c4m 程序包的 AppContainer 配置文件。
WixQuietExec64: + Add-AppxPackage -Path -ExternalLocation
WixQuietExec64: + CategoryInfo : WriteError: (C:\Users\11407\...hareTarget.msix:String), IOException
WixQuietExec64: Error 0x80070001: Command line returned an error.
Action ended 18:44:29: InstallFinalize. Return value 3.
已尝试(均无效)
- 重启电脑
- 开启开发者模式(Appx 旁加载)
- 管理员执行 Get-AppxPackage -AllUsers 确认无任何 WeChat 相关残留包
- Restart-Service AppXSvc(因存在依赖服务被拒绝)
- 关闭 Windows Defender 实时保护后重装
- 系统其余 179 个 Appx 包状态全部正常
猜测
首次安装失败(当时开发者模式未开启)可能在 StateRepository 中留下了孤儿的 AppContainer 记录;后续安装时 Add-AppxPackage 先尝试删除该记录,删除失败(0x800701C0, IOException),导致整个包注册中止。普通用户态/管理员手段(Get-AppxPackage / Remove-AppxPackage / 重启)均无法清除该记录。
请求
- 修复 Register-ShareTarget.ps1 的 Add-AppxPackage 部署流程(部署前先检测并清理同名孤儿 AppContainer)
- 或提供备选安装方式(如单独提供 ShareTarget.msix 供手动注册,主程序 MSI 与 ShareTarget 解耦)
完整 Burn 日志与 MSI 日志如需,可进一步提供。
- Dominant language
- Swift
- Stars
- 1.4k
- Forks
- 430
- Avg merge
- 18h 9m
- Merged PRs (30d)
- 10
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from freestylefly/WeChatBridge
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
freestylefly/WeChatBridge#44 ·
Maintainers usually reply within 1 day
-
Windows 兼容层404Open
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
freestylefly/WeChatBridge#42 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
freestylefly/WeChatBridge#41 ·
Maintainers usually reply within 1 day
-
win版本安装最后一步报错MSI解压失败Possibly taken @dqtx760 claimed this 4 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 15/100
freestylefly/WeChatBridge#38 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
freestylefly/WeChatBridge#32 ·
Maintainers usually reply within 1 day
All issues in freestylefly/WeChatBridge
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
meshtastic/Meshtastic-Apple#2603 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug Windows
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
fyi-ecosystem platform-ios team-ios
Difficulty 1/5 Under an hour Newbie friendliness 70/100
flutter/flutter#194348 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 Half a day Newbie friendliness 62/100
swiftwasm/JavaScriptKit#818 ·