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

51

Solution 1

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

Solution 2

You can use Add-ProvisionedAppxPackage with 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 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
  1. Wait, it takes a while.
  2. If there are some depencies use /DependencyPackagePath:[pathDependcies]

I hope that I could help someone with that. :)

Share:
51

Related videos on Youtube

Abdo Adel
Author by

Abdo Adel

Updated on September 18, 2022

Comments

  • Abdo Adel
    Abdo Adel over 1 year

    I want to make a select box to change the font and I wanna choose between 3 or 4 font style

    ex. when I click on font 1 it must change to 'Franklin Gothic Medium' for all website that is the point.

        <script>
    function changeFont() {
      document.getElementById("body").style.fontFamily = 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    }
        <script>
    
        <div class="option-box">
        <h4>Font Style</h4>
        <div class="fonts">
         <select name="" id="myfont">
           <option>font 1</option>
           <option>font 2</option>
           <option>font 3</option>
        </select>
         </div>
         </div>
    
    • Ramhound
      Ramhound over 10 years
      The only way to do this I know us to run an elevated command prompt and point to the .appx file. The solution of course is create a script file that is ran when the user logs in, which will add the applications, which will run once. I don't believe there to be a solution which involves deploying to the machine rather then the user. Powershell can manage what I describe with a simple script and the command add-appxpackage C:\ContosoApp\ExpenseApp.appx
    • Martin
      Martin over 10 years
      this is who we do it now. ;) ... but one point is that we want to reduce the number of scripts running on startup.
    • Ramhound
      Ramhound over 10 years
      Like I said the article I found is pretty clear. It basically says there isn't a way to deploy a WS application to the machine unless you use the image method. Of course that isn't different compared to say a desktop application. You have to basically deploy the installation in a similar matter unless you build it into the application itself at least on Windows Vista and Windows 7. Windows XP barely had the concept of user seperation.
    • thilina R
      thilina R about 6 years
      does this work for windows 10 uwp?
    • George Tiganila
      George Tiganila over 3 years
      And what would be the issue?
  • thilina R
    thilina R about 6 years
    does this work for windows 10 uwp?
  • Abdo Adel
    Abdo Adel over 3 years
    thanks a lot, i want to add the selected font to localStorage, I tried but it still doesn't work.