Commit b05402b
committed
Restart Appx/MSIX package management based around PowerShell's builtin cmdlets.
There's a lot of issues here and replicating it within our own code is probably more trouble than it's worth. The PowerShell module `Dism` uses undocumented Win32 entrypoints to do its job, and we can't replicate the functionality of the Dism-based cmdlets via WinRT as the P/Invokes just work differently.
Also for the Appx module, Microsoft silently retargeted this module to be netstandard2.0. This is documented at https://learn.microsoft.com/en-us/windows/win32/appxpkg/how-to-use-appx-module-without-powershell and I've been able to confirm this with ILSpy, however the main module compatibility page has _not_ been updated to reflect this: https://learn.microsoft.com/en-us/powershell/windows/module-compatibility?view=windowsserver2025-ps#module-list. This means we no longer have to rewrite its functionality for Windows PowerShell/PowerShell 7 portability.
As such, let's just leverage the capabilities PowerShell natively provides as it should meet all our needs while providing an experience that most PowerShell users are used to receiving.1 parent 8502b76 commit b05402b
7 files changed
Lines changed: 5 additions & 378 deletions
File tree
- src/PSADT
- PSADT.Interop
- PSADT.WindowsRuntime
- Management/Deployment
- PSADT
- AppManagement
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
Lines changed: 0 additions & 287 deletions
This file was deleted.
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 12 | | |
17 | 13 | | |
18 | 14 | | |
| |||
22 | 18 | | |
23 | 19 | | |
24 | 20 | | |
25 | | - | |
26 | 21 | | |
27 | 22 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments