For reference: Now it is very much possible with WinAppDeployCmd install

https://stackoverflow.com/questions/45894261/can-i-use-winappdeploycmd-install-update-on-pc-itself

https://docs.microsoft.com/en-us/windows/uwp/packaging/install-universal-windows-apps-with-the-winappdeploycmd-tool

Answer from rvnlord on Stack Exchange
🌐
Microsoft Learn
learn.microsoft.com › en-us › windows › package-manager › winget
Use WinGet to install and manage applications | Microsoft Learn
WinGet will not be available until you have logged into Windows as a user for the first time, triggering Microsoft Store to register the Windows Package Manager as part of an asynchronous process. If you have recently logged in as a user for the first time and find that WinGet is not yet available, you can open PowerShell and enter the following command to request this WinGet registration: Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe. WinGet is included in the App Installer.
🌐
Reddit
reddit.com › r/microsoft › installing apps from microsoft store via command line?
r/microsoft on Reddit: Installing Apps from Microsoft Store via Command Line?
March 21, 2023 -

I'm curious to know if it's possible to install apps from the Microsoft Store using command line instructions, similar to what can be done on Linux with Flathub. Is there a way to achieve this on Windows, or are there alternative methods available?

🌐
Microsoft Learn
learn.microsoft.com › en-us › windows › apps › publish › msstore-dev-cli › commands
Microsoft Store Developer CLI (preview) Commands (MSIX) - Windows apps | Microsoft Learn
This means that you can use the Microsoft Store Developer CLI (preview) in your CI/CD pipelines to, for example, automatically publish your applications to the Microsoft Store. The firststep to achieve this it to install the Microsoft Store Developer CLI (preview) on your CI/CD environment.
🌐
4sysops
4sysops.com › home › blog › articles › windows 11 store cli: install microsoft store apps with the store command from the command prompt or powershell
Windows 11 Store CLI: Install Microsoft Store apps with the store command from the Command Prompt or PowerShell – 4sysops
11 hours ago - The Store CLI includes commands to manage installed applications: ... store install <app-name>: Downloads and installs an app from the Microsoft Store (for example, store install whatsapp)
🌐
Reddit
reddit.com › r/techsupport › microsoft store is removed. how can i reinstall it?
r/techsupport on Reddit: Microsoft Store is Removed. How Can I Reinstall It?
February 14, 2023 -

Hello. Today I had my computer formatted and installed Windows 10 Pro. The version is 10.0.10586. The Microsoft Store didn't open, I got a screen saying "try that again". I tried to solve this problem, I tried a few solutions and then I typed the following command into the command line and hit enter:

PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage Microsoft.WindowsStore).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"

After doing so, the Microsoft Store was removed. I tried to install it again but I couldn't. Help me.

Top answer
1 of 3
9
Easiest way to reinstall, that no one has mentioned. BTW, found this just now due to my struggle of getting it back and not wanting to factory reset in hopes it brings it back. Follow these steps: if you can manage to get the Xbox app installed onto your PC, open the Xbox app, click on your GAMERTAG/NAME, go to SETTINGS, go to General. There you will see a list of dependency apps that make the Xbox app function properly. Among the list is Microsoft Store, install.
2 of 3
3
Press the Windows key + R to open the Run dialog box. Type "cmd" and press Ctrl + Shift + Enter to open an elevated Command Prompt. In the Command Prompt, type the following command and press Enter: Get-AppxPackage WindowsStore -allusers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} This command will reinstall the Microsoft Store app on your system. Once the command has completed, close the Command Prompt and try opening the Microsoft Store again. If the store still won't open, try running the Windows Store Apps Troubleshooter. To do this, go to Settings > Update & Security > Troubleshoot > Additional troubleshooters > Windows Store Apps > Run the troubleshooter. If the troubleshooter doesn't resolve the issue, you can try resetting the Microsoft Store app. To do this, go to Settings > Apps > Apps & features > Microsoft Store > Advanced options > Reset. If none of these solutions work, you can try reinstalling Windows 10 using the Media Creation Tool or a Windows 10 installation disk. Make sure to back up your important files and data before doing so. Note: It's important to be careful when using PowerShell commands, as they can have unintended consequences if entered incorrectly. Make sure to double-check the command before entering it into the Command Prompt.
Find elsewhere
🌐
Liliputing
liliputing.com › home › install microsoft store apps from the command line with windows package manager 1.1
Install Microsoft Store apps from the command line with Windows Package Manager 1.1 - Liliputing
October 12, 2021 - Install the App Installer from the Microsoft Store. Download and install the latest release available from GitHub. Download and install the latest release directly from Microsoft. Once installed, you can open a command prompt, PowerShell, or Windows Terminal and use the “winget” command (without quotes) to search for applications, get more information about them, install them, or remove them, among other things.
🌐
Windows 10 Forums
tenforums.com › tutorials › 8239-re-register-microsoft-store-app-windows-10-a-28.html
Re-register Microsoft Store app in Windows 10 - Windows 10 Help Forums
Use "wsreset -i" (elevated) command to reinstall and Reset Microsoft Store if it is missing from within Windows. Full thread here: https://answers.microsoft.com/en-us/...2-8a830998719f The Store will download and reinstall itself after a restart.
🌐
Microsoft Learn
learn.microsoft.com › en-us › windows › apps › publish › msstore-dev-cli › overview
Microsoft Store Developer CLI (MSIX) - Windows apps | Microsoft Learn
The Microsoft Store Developer CLI supports Windows 10+, Linux, and macOS: Install the Microsoft Store Developer CLI (preview) now!
Top answer
1 of 5
21

You can now use winget to install msstore apps on windows 10 and 11. Use winget search <app_name> --source=msstore to make a search, and use the id of the app to install and upgrade the app. For example, to install Netflix:

  1. First I made a search with winget search Netflix --source=msstore, I see that the app id is 9WZDNCRFJ3TJ.
  2. I install app with winget install -e -i --id=9WZDNCRFJ3TJ --source=msstore.
  3. I upgrade app with winget upgrade -e -i --id=9WZDNCRFJ3TJ.
2 of 5
11

store.rg-adguard.net is a GUI for generating direct download links to store apps. Peeking at the source of that page, we can piggyback off them to download the content directly, but using PackageFamilyName, rather than Name (in your example it would be Microsoft.HEVCVideoExtension_8wekyb3d8bbwe).

function Download-AppxPackage {
[CmdletBinding()]
param (
  [string]$PackageFamilyName,
  [string]$Path
)
   
  process {
    $WebResponse = Invoke-WebRequest -Method 'POST' -Uri 'https://store.rg-adguard.net/api/GetFiles' -Body "type=PackageFamilyName&url=$($PackageFamilyName)&ring=Retail&lang=en-US" -ContentType 'application/x-www-form-urlencoded' -UseBasicParsing
    $LinksMatch = $WebResponse.Links | where {$_ -like '*_x64*.appx*'} | Select-String -Pattern '(?<=a href=").+(?=" r)'
    $DownloadLinks = @($LinksMatch.matches.Value)

    for ($i = 1; $i -le $DownloadLinks.Count; $i++) {
      Invoke-WebRequest -Uri $DownloadLinks[$i-1] -OutFile "$Path\$PackageFamilyName($i).appx"   
    }
  }
}

This is limited to the x64 version, and the path must point to a folder. It will download the package and its dependencies and save them all as PackagefamilyName(n).appx

🌐
MiniTool
minitool.com › home › news › can i reinstall microsoft store on my windows?
Learn the Way to Reinstall Microsoft Store on Windows
November 29, 2024 - You need to download the Microsoft Store appx bundle/package from Microsoft and then install it on your computer.
🌐
Reddit
reddit.com › r/windowshelp › help installing microsoft store tried everything
Help installing Microsoft store tried everything : r/WindowsHelp
July 27, 2024 - Run WinGet install 9WZDNCRFJBMP from PowerShell or Command Prompt. This requires WinGet's parent package, App Installer, to have not been uninstalled. (You can get App Installer from its repo and install it via PowerShell.) Download a copy of Microsoft Store from here: https://www.microsof...
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 1305101 › my-pc-dont-have-microsoft-store-so-i-have-to-insta
My PC dont have microsoft store so i have to install it manually, but when i using command with admin powershell it just print an error, pls help me - Microsoft Q&A
Run the command again: Copy and paste the following command into the elevated PowerShell window and press Enter: Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLo...