Files
cheatsheet-tldr/tldr/windows/add-appxpackage

26 lines
781 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
syntax: markdown
tags: [tldr, windows]
source: https://github.com/tldr-pages/tldr.git
---
# 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 o\package.msix}}`
- Add an app package with dependencies:
`Add-AppxPackage -Path {{path o\package.msix}} -DependencyPath {{path o\dependencies.msix}}`
- Install an app using the app installer file:
`Add-AppxPackage -AppInstallerFile {{path opp.appinstaller}}`
- Add an unsigned package:
`Add-AppxPackage -Path {{path o\package.msix}} -DependencyPath {{path o\dependencies.msix}} -AllowUnsigned`