This is the built-in help made by Microsoft for the command 'Add-AppxPackage', in PowerShell version 3 - as retrieved from
Windows version 'Microsoft Windows Server 2012 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 [<SwitchParameter>]] [-Confirm [<SwitchParameter>]]
[-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Add-AppxPackage [-Path] <String> [-DependencyPath <String[]>] [-DisableDevelopmentMode [<SwitchParameter>]] [-ForceApplicationShutdown
[<SwitchParameter>]] -Register [<SwitchParameter>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Add-AppxPackage [-Path] <String> [-DependencyPath <String[]>] [-ForceApplicationShutdown [<SwitchParameter>]] -Update [<SwitchParameter>]
[-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<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=215769
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) and the signing certificate that the package contains.
EXAMPLE 2
PS C:\> $manifestpath = (get-appxpackage -Name "*
WinJS*").InstallLocation + "\Appxmanifest.xml"
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.