neo42-GmbH / PSAppDeployToolKitExtensions

Explore a next level packaging experience with the neo42 Extensions for the PSAppDeployToolkit. The base for the neo42 Application Package Depot
https://neo42.de/application-package-depot
GNU Lesser General Public License v3.0
4 stars 0 forks source link

Add NXT Function for handling installation and uninstallation of AppX Packages #829

Open neo42dhh opened 8 months ago

neo42dhh commented 8 months ago

At the moment we use native powershell commandlets like Add-AppxProvisionedPackage, Get-AppxProvisionedPackage, Get-AppxPackage, Remove-AppxPackage and Remove-AppxProvisionedPackage for handling the installation and uninstallation of AppX Packages. However, this is complex as success checks, error handling and logging have to be done manually. For examples you can refer to MSTeams Package. As we expect to have more and more Appx packages in the future, an NXT function would be useful for this. Maybe it would also be a good idea to make AppX usable as installer type in neo42packageconfig.json in the future.

neo42rkh commented 8 months ago

What do you think about including AppX as InstallMethod and UninstallMethod (maybe it needs to be called MSIX), so we can include it as another standard procedure of Install-NxtApplication and Uninstall-NxtApplication (without the complexity of the Teams package - just normal install and uninstall)? Such setup files might be called .appx, .msix or *.msixbundle (like WindowsApps) ... anything else?

neo42dhh commented 7 months ago

here some additional links: https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/sideload-apps-with-dism-s14?view=windows-11#add-apps

here you find a list of returncodes: https://learn.microsoft.com/en-us/windows/win32/appxpkg/troubleshooting here is the describtion of the Log Commandlet: https://learn.microsoft.com/en-us/powershell/module/appx/get-appxlog https://learn.microsoft.com/en-us/powershell/module/appx/get-appxlasterror

neo42JBR commented 6 months ago

I like the idea and would see this as the major feature for the next release.