PreinstallKit silently fails registration phase #21388

Closed
opened 2026-01-31 07:43:14 +00:00 by claunia · 3 comments
Owner

Originally created by @blancmangit on GitHub (Mar 12, 2024).

Windows Terminal version

1.19.10573.0

Windows build number

10.0.19045.0

Other Software

Terminal (Unpackaged) version 1.19.240226003 runs great on our windows10-LTSC but we need proper registration

Steps to reproduce

add-appxpackage 291183aaefda4b0b99d54a1aaacaa7f6.msixbundle # as admin in win10-LTSC
wt # not recognized as a cmdlet, etc
PS C:\Program Files\WindowsApps> ls .\Microsoft.WindowsTerminal_**

Directorio: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.19.10573.0_x64__8wekyb3d8bbwe

Mode LastWriteTime Length Name


d----- 12/03/2024 14:18 AppxMetadata
d----- 12/03/2024 14:18 Images
d----- 12/03/2024 14:18 ProfileIcons
-a---- 12/03/2024 14:18 57667 AppxBlockMap.xml
-a---- 12/03/2024 14:18 29251 AppxManifest.xml
-a---- 12/03/2024 14:18 12209 AppxSignature.p7x
-a---- 12/03/2024 14:18 374 BuildInfo.xml
-a---- 12/03/2024 14:18 648732 CascadiaCode.ttf
-a---- 12/03/2024 14:18 443804 CascadiaCodeItalic.ttf
-a---- 12/03/2024 14:18 624892 CascadiaMono.ttf
-a---- 12/03/2024 14:18 427072 CascadiaMonoItalic.ttf
-a---- 12/03/2024 14:18 23189 defaults.json
-a---- 12/03/2024 14:18 138272 elevate-shim.exe
-a---- 12/03/2024 14:18 2023360 Microsoft.Terminal.Control.dll
-a---- 12/03/2024 14:18 62496 Microsoft.Terminal.Control.winmd
-a---- 12/03/2024 14:18 349632 Microsoft.Terminal.Remoting.dll
-a---- 12/03/2024 14:18 32192 Microsoft.Terminal.Remoting.winmd
-a---- 12/03/2024 14:18 3221544 Microsoft.Terminal.Settings.Editor.dll
-a---- 12/03/2024 14:18 83488 Microsoft.Terminal.Settings.Editor.winmd
-a---- 12/03/2024 14:18 2183200 Microsoft.Terminal.Settings.Model.dll
-a---- 12/03/2024 14:18 133152 Microsoft.Terminal.Settings.Model.winmd
-a---- 12/03/2024 14:18 17840 Microsoft.Terminal.TerminalConnection.winmd
-a---- 12/03/2024 14:18 285696 Microsoft.UI.Xaml.winmd
-a---- 12/03/2024 14:18 107968 Microsoft.Web.WebView2.Core.winmd
-a---- 12/03/2024 14:18 17289 NOTICE.html
-a---- 12/03/2024 14:18 1218592 OpenConsole.exe
-a---- 12/03/2024 14:18 45600 OpenConsoleProxy.dll
-a---- 12/03/2024 14:18 943968 resources.pri
-a---- 12/03/2024 14:18 2982432 TerminalApp.dll
-a---- 12/03/2024 14:18 77864 TerminalApp.winmd
-a---- 12/03/2024 14:18 122288 TerminalAzBridge.exe
-a---- 12/03/2024 14:18 423976 TerminalConnection.dll
-a---- 12/03/2024 14:18 48680 TerminalThemeHelpers.dll
-a---- 12/03/2024 14:18 699424 WindowsTerminal.exe
-a---- 12/03/2024 14:18 128552 WindowsTerminalShellExt.dll
-a---- 12/03/2024 14:18 136624 wt.exe

Directorio: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_3001.19.10573.0_neutral_~_8wekyb3d8bbwe

Mode LastWriteTime Length Name


d----- 12/03/2024 15:37 AppxMetadata
-a---- 12/03/2024 15:37 340 AppxBlockMap.xml
-a---- 12/03/2024 15:37 12056 AppxSignature.p7x

Expected Behavior

Windows Internals 7th edition, Book II, Chapter 8, page 266, Phase 3

Actual Behavior

The Appx Deployment server didn't commit to the State Repository, and the files in WindowsApps can't be removed by a normal admin

Originally created by @blancmangit on GitHub (Mar 12, 2024). ### Windows Terminal version 1.19.10573.0 ### Windows build number 10.0.19045.0 ### Other Software **Terminal (Unpackaged) version 1.19.240226003** runs great on our **windows10-LTSC** but we need proper registration ### Steps to reproduce > add-appxpackage 291183aaefda4b0b99d54a1aaacaa7f6.msixbundle # as admin in win10-LTSC > wt # not recognized as a cmdlet, etc > PS C:\Program Files\WindowsApps> ls .\Microsoft.WindowsTerminal_*\* Directorio: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.19.10573.0_x64__8wekyb3d8bbwe Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 12/03/2024 14:18 AppxMetadata d----- 12/03/2024 14:18 Images d----- 12/03/2024 14:18 ProfileIcons -a---- 12/03/2024 14:18 57667 AppxBlockMap.xml -a---- 12/03/2024 14:18 29251 AppxManifest.xml -a---- 12/03/2024 14:18 12209 AppxSignature.p7x -a---- 12/03/2024 14:18 374 BuildInfo.xml -a---- 12/03/2024 14:18 648732 CascadiaCode.ttf -a---- 12/03/2024 14:18 443804 CascadiaCodeItalic.ttf -a---- 12/03/2024 14:18 624892 CascadiaMono.ttf -a---- 12/03/2024 14:18 427072 CascadiaMonoItalic.ttf -a---- 12/03/2024 14:18 23189 defaults.json -a---- 12/03/2024 14:18 138272 elevate-shim.exe -a---- 12/03/2024 14:18 2023360 Microsoft.Terminal.Control.dll -a---- 12/03/2024 14:18 62496 Microsoft.Terminal.Control.winmd -a---- 12/03/2024 14:18 349632 Microsoft.Terminal.Remoting.dll -a---- 12/03/2024 14:18 32192 Microsoft.Terminal.Remoting.winmd -a---- 12/03/2024 14:18 3221544 Microsoft.Terminal.Settings.Editor.dll -a---- 12/03/2024 14:18 83488 Microsoft.Terminal.Settings.Editor.winmd -a---- 12/03/2024 14:18 2183200 Microsoft.Terminal.Settings.Model.dll -a---- 12/03/2024 14:18 133152 Microsoft.Terminal.Settings.Model.winmd -a---- 12/03/2024 14:18 17840 Microsoft.Terminal.TerminalConnection.winmd -a---- 12/03/2024 14:18 285696 Microsoft.UI.Xaml.winmd -a---- 12/03/2024 14:18 107968 Microsoft.Web.WebView2.Core.winmd -a---- 12/03/2024 14:18 17289 NOTICE.html -a---- 12/03/2024 14:18 1218592 OpenConsole.exe -a---- 12/03/2024 14:18 45600 OpenConsoleProxy.dll -a---- 12/03/2024 14:18 943968 resources.pri -a---- 12/03/2024 14:18 2982432 TerminalApp.dll -a---- 12/03/2024 14:18 77864 TerminalApp.winmd -a---- 12/03/2024 14:18 122288 TerminalAzBridge.exe -a---- 12/03/2024 14:18 423976 TerminalConnection.dll -a---- 12/03/2024 14:18 48680 TerminalThemeHelpers.dll -a---- 12/03/2024 14:18 699424 WindowsTerminal.exe -a---- 12/03/2024 14:18 128552 WindowsTerminalShellExt.dll -a---- 12/03/2024 14:18 136624 wt.exe Directorio: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_3001.19.10573.0_neutral_~_8wekyb3d8bbwe Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 12/03/2024 15:37 AppxMetadata -a---- 12/03/2024 15:37 340 AppxBlockMap.xml -a---- 12/03/2024 15:37 12056 AppxSignature.p7x ### Expected Behavior Windows Internals 7th edition, Book II, Chapter 8, page 266, Phase 3 ### Actual Behavior The Appx Deployment server didn't commit to the State Repository, and the files in WindowsApps can't be removed by a normal admin
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 07:43:15 +00:00
Author
Owner

@DHowett commented on GitHub (Mar 12, 2024):

If you are deploying the preinstallation kit, you're expected to use Add-AppxProvisionedPackage rather than Add-AppxPackage.

@DHowett commented on GitHub (Mar 12, 2024): If you are deploying the preinstallation kit, you're expected to use `Add-AppxProvisionedPackage` rather than `Add-AppxPackage`.
Author
Owner

@blancmangit commented on GitHub (Mar 13, 2024):

Thanks Dustin, I had tried that but seemingly I didn't insist enough.

@blancmangit commented on GitHub (Mar 13, 2024): Thanks Dustin, I had tried that but seemingly I didn't insist enough.
Author
Owner

@DHowett commented on GitHub (Mar 13, 2024):

Ah, did it end up working out?

I'm not sure about the state repository issue, unfortunately - that's a little outside my wheelhouse 😦

@DHowett commented on GitHub (Mar 13, 2024): Ah, did it end up working out? I'm not sure about the state repository issue, unfortunately - that's a little outside my wheelhouse 😦
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21388