Install Windows Store App package (*.appx) for all users

by Martin   Last Updated May 23, 2020 00:01 AM - source

I know there are several posts where users want to install Windows Store Apps for all users. Answers were to use DISM.

In my case I can not use DISM because all clients are already deployed. If a user requests a new app at the supports center, the package will be deployed to his machine.

This package (*.appx) should be deployed to the machine not only for the user.

Is there a powershell command to achive this?



Answers 2


You can do this through the DISM.EXE /Online /Add-ProvisionedAppxPackage command. More info here

user1009013
user1009013
October 07, 2015 13:53 PM

You can use PowerShell script to install UWP Sideloading packages with certificate:

  1. You must choose a local or network path and copy all the package folder content.
  2. Run Powershell as Administrator:
    $localFolderPath = "C:\UWP_1.0.0.0_Test]\*"
    $localPackage = "C:\UWP_1.0.0.0_Test\UWP_1.0.0.0_x64.msixbundle"
    $certName = Get-ChildItem -Path $localFolderPath -Include *.cer
    certutil.exe -addstore TrustedPeople $certName[0].FullName
    DISM.EXE /Online /Add-ProvisionedAppxPackage /PackagePath:$localPackage /SkipLicense
    
  3. Wait, it take a while.

After that, all users from this machine will come with a pre-installed package. The real installation of this package will be at first opening from the "Start Menu". You can not call "shell:AppsFolder/[yourpackage]" until the first opening from "Start Menu". I faced a real problem because of that. The only workaround was calling my App by File Association. (My app was designed to open *.xxx files, so when the Windows tries to open this file, it actually installs and open your UWP app.

I hope that I could help some one with that. :)

Gustavo Saita
Gustavo Saita
May 22, 2020 23:50 PM

Related Questions


Install application from Microsoft store by powershell

Updated February 16, 2018 12:01 PM



How to install Ubuntu on Windows 10 with PowerShell?

Updated November 17, 2017 21:01 PM