This is the built-in help made by Microsoft for the command 'Add-AppxPackage', in PowerShell version 5 - as retrieved from
Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Adds a signed app package (.appx) to a user account.
Add-AppxPackage [-Path] <String> [-DependencyPath <String[]>] [-ForceApplicationShutdown] [-InstallAllResources] [-Confirm] [-WhatIf] [<CommonParameters>]
Add-AppxPackage [-DependencyPackages <String[]>] [-InstallAllResources] -MainPackage <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Add-AppxPackage [-Path] <String> [-DependencyPath <String[]>] [-DisableDevelopmentMode] [-ForceApplicationShutdown] [-InstallAllResources] -Register [-Confirm] [-WhatIf]
[<CommonParameters>]
Add-AppxPackage [-Path] <String> [-DependencyPath <String[]>] [-ForceApplicationShutdown] [-InstallAllResources] -Update [-Confirm] [-WhatIf] [<CommonParameters>]
The Add-AppxPackage cmdlet adds a signed app package (.appx) to a user account. Use the DependencyPath parameter to add all other packages that are required for the
installation of the app package.
You can use the Register parameter to install from a folder of unpackaged files during development of Windows® Store apps.
To update an already installed package, the new package must have the same package family name.
<
Online Version: http://go.microsoft.com/fwlink/?LinkId=288118
Package Manager API
How to Add and Remove Apps
Get-AppxPackage
Get-AppxPackageManifest
Remove-AppxPackage
Get-AppxLog
Get-AppxLastError
<
Example 1
PS C:\>Add-AppxPackage -Path C:\Users\user1\Desktop\MyApp.appx –DependencyPath C:\Users\user1\Desktop\winjs.appx
This command adds an app package (.appx) that the package contains.
Example 2
PS C:\>$manifestpath = (get-appxpackage -Name "*WindowsCalculator*").InstallLocation + "\Appxmanifest.xml"
PS C:\> Add-AppxPackage -register $manifestpath –DisableDevelopmentMode
This command gets the full path of the package manifest file of an installed Windows Store app, and then registers that package. You can use –DisableDevelopmentMode to
register an application that is staged by the StagePackageAsync API, has been disabled, or has become corrupted during testing.