HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

Add-AppxPackage — A PowerShell utility to add a signed app package (`.appx`, `.msix`, `.appxbundle` and `.msixbundle`)

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandadd-appxpackagesignedclipowershelladdapputility
windows

Problem

How to use the Add-AppxPackage command: A PowerShell utility to add a signed app package (.appx, .msix, .appxbundle and .msixbundle) to a user account. More information: <https://learn.microsoft.com/powershell/module/appx/Add-AppxPackage>.

Solution

Add-AppxPackage — A PowerShell utility to add a signed app package (.appx, .msix, .appxbundle and .msixbundle) to a user account. More information: <https://learn.microsoft.com/powershell/module/appx/Add-AppxPackage>.

Add an app package:
Add-AppxPackage -Path {{path\to\package.msix}}


Add an app package with dependencies:
Add-AppxPackage -Path {{path\to\package.msix}} -DependencyPath {{path\to\dependencies.msix}}


Install an app using the app installer file:
Add-AppxPackage -AppInstallerFile {{path\to\app.appinstaller}}


Add an unsigned package:
Add-AppxPackage -Path {{path\to\package.msix}} -DependencyPath {{path\to\dependencies.msix}} -AllowUnsigned

Code Snippets

Add an app package

Add-AppxPackage -Path {{path\to\package.msix}}

Add an app package with dependencies

Add-AppxPackage -Path {{path\to\package.msix}} -DependencyPath {{path\to\dependencies.msix}}

Install an app using the app installer file

Add-AppxPackage -AppInstallerFile {{path\to\app.appinstaller}}

Add an unsigned package

Add-AppxPackage -Path {{path\to\package.msix}} -DependencyPath {{path\to\dependencies.msix}} -AllowUnsigned

Context

tldr-pages: windows/Add-AppxPackage

Revisions (0)

No revisions yet.