Skip to content

Add-AppxPackage -AppInstallerFile docs does not say that the package will be downloaded from the URL #2523

@LevYas

Description

@LevYas

Hi!
I have a WPF app, which I package to MSIX and run functional end-to-end tests against a packaged and installed version. To install the package I used this command:

Add-AppxPackage -AppInstallerFile .\Bin\Packages\Installer.appinstaller

The appinstaller file contains a valid URL to the update server. I added some functionality and my tests started to fail. I noticed, that the previous version was used. I reproduced it on my local machine - I downloaded the package, verified that the application files are correct, and used the command above to install it. Instead of installing the app from the downloaded package, the command downloaded a previous version from the internet.

For now, I fixed this by changing command to
Add-AppxPackage ".\Bin\Packages\Installer_$Env:GitBuildVersionSimple.0_Test\Installer_$Env:GitBuildVersionSimple.0_x64.msixbundle"

(I use env variables from Nerdbank.GitVersioning)

I'm not sure whether it's the problem of docs or the Add-AppxPackage commandlet, but it would be nice to mention the current behavior difference in the docs.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

area-appxIssues for appx moduleissue-doc-bugSomething is out of date, unclear, confusing, or broken in the article. Blocks customer success.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions