(Solved) Deployment Failed when Installing APPX Package

When you see the “Deployment Failed when Installing APPX Package” message, it means the installation process suddenly stops. PowerShell will show an error code (called an HRESULT), and the app package doesn’t finish installing or won’t open at all. The error code, like 0x80073CF0, is a signal that Windows couldn’t open the APPX package. Usually, this means “The package couldn’t be opened.”

Powershell shows "Add-AppxPackage Deployment failed with HRESULT"
PowerShell shows “Add-AppxPackage Deployment failed with HRESULT” Fix

The most common reason for this is a missing or damaged APPX file. Other possible causes include not having the right permissions or not running PowerShell as an administrator.

This guide will walk you through several solutions to fix the “Add-AppxPackage Deployment failed with HRESULT” error.

1. Restart Your Computer

If you get an error in Windows PowerShell, simply restarting your computer can often solve the problem. Restarting ensures all system processes and services start fresh, which may quickly resolve the error.

  1. Open the Windows Start Menu by pressing the Win key.
  2. Click the Power icon, and Restart your computer by clicking the “Restart” option.
    Restarting the Windows computer
    Restarting the Windows computer

2. Run the Windows Store Troubleshooter

Windows includes a built-in troubleshooting tool that can automatically find and fix problems with Microsoft Store apps. Running the troubleshooter is a good first step to detect and resolve issues causing errors like this one.

  1. Press Win + I to open Windows Settings.
  2. Go to System > Troubleshooter.
  3. Scroll down and click the “Windows Store Apps” option.
  4. Start the troubleshooter by clicking “Run the troubleshooter“.
    Running the Windows Store troubleshooter
    Running the Windows Store troubleshooter
  5. After it finishes detecting any issues, choose a recommended solution (for example, resetting the Windows Store app to fix the problem).
    Resetting the Windows Store
    Resetting the Windows Store

3. Disable the StartMenuExperienceHost EXE Process

The StartMenuExperienceHost.exe process helps manage the Windows Start Menu, but it can sometimes interfere with PowerShell commands. Disabling it temporarily before running your PowerShell command may solve the problem.

  1. Open the Start Menu by pressing the Win key.
  2. Type “PowerShell” in the search bar.
  3. Right-click PowerShell and select “Run as administrator“.
    Running Powershell as an administrator
    Running Powershell as an administrator
  4. Copy and paste the following command into PowerShell and hit Enter:
    Powershell -ExecutionPolicy Unrestricted
  5. Right-click the Start Menu again and select “Task Manager“.
    Opening the Task Manager
    Opening the Task Manager
  6. Click the “Details” tab, and find the StartMenuExperienceHost.exe process.
  7. Right-click it and choose “Open file location“.
    Opening the file location
    Opening the file location
  8. Right-click the EXE file in the folder, then select “Cut“.
    Cutting the EXE file
    Cutting the EXE file
  9. Paste the file into another folder by pressing Ctrl + V.
  10. Switch back to Task Manager.
  11. Find the EXE process again, right-click, and select “End task“.
    Ending the task
    Ending the task
  12. Now, retry the PowerShell command that was causing the error.
    WARNING: After running your command, remember to move the StartMenuExperienceHost.exe file back to its original folder. If you don’t, your Start Menu and Taskbar might stop working.

4. Run System File Scans

Corrupted system files are a common reason for this error. These files can block some actions from running correctly in your system. Running a system file scan will help find and repair any damaged files.

  1. Press the Win key to open the Start Menu.
  2. Type “cmd” in the search bar.
  3. Right-click “Command Prompt” and select “Run as administrator“.
    Running the Command Prompt as an administrator
    Running the Command Prompt as an administrator.
  4. Type the following command, making sure there’s a space between “sfc” and “/”:
    sfc /scannow
    Running system file checker on the command prompt.
    Running system file checker on the command prompt.
  5. The System File Checker will scan and automatically repair corrupted files it finds.
Note: After running SFC, it’s also recommended to run the DISM tool for a deeper scan. To do this, follow these steps:
  1. Copy and paste the following command into Command Prompt and press Enter:
    Dism.exe /online /cleanup-image /restorehealth
    Running DISM Command on the Command Prompt
    Running DISM Command on the Command Prompt
  2. Restart your computer once it’s complete so the repairs can take effect.

5. Update Your Windows

An outdated version of Windows might prevent some programs or updates from working properly and can contribute to these errors. Keeping Windows up to date is essential.

  1. Open Windows Settings with Win + I.
  2. Go to Update & Security > Windows Update.
  3. Click “Check for Updates“.

    Checking an available Windows Update
    Checking an available Windows Update
  4. After a Windows update is found, download it by clicking Download.
  5. Restart your computer to finish installing updates.
Note: If Windows doesn’t find updates automatically, you can get the latest updates manually. Here’s how to update Windows manually:
  1. Go to the Official Microsoft Web Page.
  2. Download the latest Windows Update by clicking “Update Now“.

    Downloading the Latest Windows Update
    Downloading the Latest Windows Update
  3. Install the update by clicking “Update Now” on the Windows Update Assistant page.

    Installing Windows Update
    Installing Windows Update
  4. After installation, restart your computer by clicking the Restart option.

    Restarting the Computer
    Restarting the Computer

6. Run Windows in Safe Mode

If you’re still facing the error, try starting Windows in Safe Mode. In Safe Mode, your computer starts with a basic set of drivers and programs, which can help isolate what’s causing the problem.

  1. Press Win + R to open the Run dialog.
  2. Type “msconfig” and click OK to open System Configuration.
    Opening System Configuration
    Opening System Configuration
  3. Go to the Boot tab and check “Safe Mode“.
  4. Select “Minimal“.
  5. Set a timeout if needed, then click Apply and OK.
    Booting System on Safe Mode
    Booting System on Safe Mode
  6. Restart your computer when prompted.
    Restarting computer
    Restarting computer
  7. Once you’re in Safe Mode, open PowerShell again as administrator (see previous steps).
  8. Run the command that was failing, for example:
    $manifest = (Get-AppxPackage Microsoft.WindowsStore).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest
Note: If the error doesn’t show up in Safe Mode, move to the next method.

7. Use an In-Place Upgrade

An In-Place Upgrade lets you repair Windows without deleting your personal files or apps. Use this only as a last resort if everything else fails.

Disclaimer: This process normally won’t affect your data, but it’s always a good idea to back up important files first.
  1. Go to the Official Microsoft Website.
  2. Click “Download Now” under “Create Windows 10 installation media”.
    Downloading the tool
    Downloading the tool
  3. Select the folder where you’d like to save the file, then click Save.
    Saving the file in the folder
    Saving the file in the folder
  4. In your browser, open the Downloads page.
    Opening the Downloads tab
    Opening the Downloads tab
  5. Right-click and select “Show in Folder” to find the file.
    Opening the EXE file location
    Opening the EXE file location
  6. Open the EXE file by right-clicking and selecting “Open“.
    Opening the EXE File
    Opening the EXE File
  7. Choose “YES” in the User Account Control prompt.
  8. Accept the license terms by clicking “Accept“.
    Accepting the terms and conditions
    Accepting the terms and conditions
  9. Pick “Upgrade this PC now” when prompted.
    Upgrading this PC now
    Upgrading this PC now
  10. Click “Install” to start the setup.
    Installing the tool
    Installing the tool
  11. Log in with your account after installation.
  12. Choose your preferred privacy settings and click “Accept“.
    Choosing Privacy Settings for your device
    Choosing Privacy Settings for your device
  13. Enable Cortana if you wish by clicking “Use Cortana“.
    Using Cortana
    Using Cortana
  14. This will bring you to the Windows sign-in screen.
ABOUT THE AUTHOR

Muhammad Zubyan


Muhammad Zubyan is a certified Google IT Support Professional with over 7 years of extensive experience. He has worked on more than 1500 computers, gaining valuable insights that enable him to detect and troubleshoot any complicated root cause of Windows-related issues and errors. In addition to managing Appuals as a Senior Editor, he is currently developing his own Game Optimization program that caters to both gamers and casual users alike.