Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Windows] v1.1.12 安装失败 0x80070643:Add-AppxPackage 无法删除 AppContainer 配置文件 (0x800701C0)

Open
#39 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@dqtx760 is already working on this.

Since Oct 10, 2026.

  • #40 by @dqtx760 — open

Assessment

Difficulty
4/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
powershell
Domain
desktop, devops

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,无第三方杀软

复现步骤

  1. 双击 WeChatBridge-1.1.12-Windows-Setup.exe
  2. 等待安装完成

实际结果

  • 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 / 重启)均无法清除该记录。

请求

  1. 修复 Register-ShareTarget.ps1 的 Add-AppxPackage 部署流程(部署前先检测并清理同名孤儿 AppContainer)
  2. 或提供备选安装方式(如单独提供 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from freestylefly/WeChatBridge

All issues in freestylefly/WeChatBridge

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.