Skip to content

setup-windows breaks activation of ALL packaged (MSIX/AppX) apps after reboot — 0x800701F6 [FinishPackageActivation]; only a full Windows reinstall recovered previously #40

Description

@0xReSan

setup-windows breaks activation of ALL packaged (MSIX/AppX) apps after reboot — 0x800701F6 [FinishPackageActivation]; only a full Windows reinstall recovered previously

Environment

Summary

After a successful finsafe setup-windows followed by a reboot, activation of every packaged (MSIX/AppX) application started failing for the user: Windows Terminal, Windows Web Experience (widgets), PowerToys (all three context-menu packages), Command Palette, Microsoft Store, OpenAI Codex desktop, etc. Failure is at the process-creation / "configuring runtime" stage. Regular (non-packaged) Win32 processes, user-profile loading, file ACLs, registry, disk, and the AppX services themselves are all healthy. Every remediation attempted so far has failed (list below). The user reports this exact failure previously forced a full Windows reinstall.

Steps to reproduce

  1. Clean Windows 11 26200 host with a local-admin user.
  2. Install finsafe (0.9.44 era), run finsafe setup-windows, accept the UAC prompt (helper service + finsafe-net group + WFP provisioning all complete).
  3. Reboot.
  4. Launch any packaged app — Start menu → Windows Terminal, or run C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_*_x64__8wekyb3d8bbwe\WindowsTerminal.exe directly.

Expected

The app launches normally.

Actual

Windows Terminal fails immediately at process creation with:

Access to the user profile configuration is denied.  (加载用户配置文件时访问被拒绝)

Microsoft-Windows-AppModel-Runtime/Admin fills with events 208/216:

0x800701F6: Cannot create the process for package <pkg> because an error was
encountered while configuring runtime. [FinishPackageActivation]

240 events since first onset 2026-09-06 17:13:02 local — minutes after the setup-windows reboot.

Affected packages (event-216 census, top offenders)

WindowsTerminal ×88, MicrosoftWindows.Client.WebExperience ×27, PowerToys FileLocksmithContextMenu / PowerRenameContextMenu / ImageResizerContextMenu, Microsoft.CommandPalette, Microsoft.WindowsStore, ThunderShell, OpenAI.Codex — i.e., every packaged app that was attempted.

Verified healthy (ruled out)

  • User profile loading: User Profile Service logs only successes (1531/1532). Fresh full-profile processes spawned via Task Scheduler read/write the profile normally.
  • File ACLs: C:\Users\xuls2, AppData roots, %LOCALAPPDATA%\Packages, the WindowsApps package directory, NTUSER.DAT — all standard ACEs, no deny entries.
  • Registry: ProfileList entry correct (State=0, ProfileImagePath correct), HKCU readable, no finsafe keys besides the service (now deleted).
  • Disk / services: 182 GB free; AppXSvc, StateRepository, ClipSVC, TokenBroker all running.
  • Component store: sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth both exit 0 — no corruption reported, no effect on the failure.

Remediation attempts that did NOT help

  1. Stop + delete the finsafe-winhelper service.
  2. Remove the user from finsafe-net and delete the group.
  3. Delete all 90 accumulated AppContainer profile folders (finsafe-probe-*, finsafe-local) under %LOCALAPPDATA%\Packages (finsafe creates one per probe/run/self-confine).
  4. Re-register Windows Terminal (Add-AppxPackage -Register AppxManifest.xml -DisableDevelopmentMode) — succeeds, no effect.
  5. sfc + DISM (above).
  6. Restore the AppRepository package-metadata files (surgery undone, state reverted).

A StateRepository database reset was attempted (stop AppXSvc/StateRepository/ClipSVC → rename C:\ProgramData\Microsoft\Windows\AppRepository) but the folder and DB files are protected against rename even after takeown + recursive Administrators grant (TrustedInstaller protection), so a clean reset could not be performed without Safe Mode.

Working hypothesis (for the developer)

finsafe creates one per-user AppContainer profile (finsafe-probe-<pid>, finsafe-local) on every probe/run/self-confine — 90 accumulated on this host since 8/31. Packaged-app activation creates a Desktop AppX container that consults the same per-user AppContainer/AppX registration state (StateRepository per-user partition). If repeated CreateAppContainerProfile churn corrupts that state, every packaged app fails at container creation ("configuring runtime", 0x800701F6), which would explain why:

  • the failure is user-wide and survives deleting the helper service, the finsafe-net group, and the package folders (corruption persists), and
  • a fresh Windows install was the only recovery the user found.

Questions for the maintainers

  1. What in setup-windows / helper provisioning runs for the first time on a previously-failing host (see [bug]: Windows setup-windows cannot establish helper IPC — finsafe-winhelper named pipe rejects Read/Write connections (PIPE NOT AVAILABLE); WFP never registered; allowlist unusable (persists across reboots, build 26200) #37) that could corrupt per-user AppX/AppContainer registration state machine- or user-wide?
  2. Is there a supported way to reset the per-user AppX activation state (short of Safe Mode AppRepository reset or reinstall)?
  3. Does this reproduce on other hosts with repeated finsafe probe/run activity (many finsafe-probe-* AppContainer profiles)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions