Reinstall default apps from image file


  1. Posts : 22
    Microsoft Windows 10 Pro 64-bit 16299 Multiprocessor Free
       #1

    Reinstall default apps from image file


    Hi,

    I've messed a lot with the pre-installed apps, but now decided to reinstall them.

    I've deleted everything under C:\Program Files\WindowsApps. Then I copied the same directory from Windows ISO and pasted there. Also I set the folder to default permissions.

    Then I entered the following command at Power Shell: Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

    It processes C:/Windows/SystemApps fine, but gives this error for others: Add-AppxPackage : Cannot find path 'C:\AppXManifest.xml' because it does not exist.


    I also found a script at MS site called reinstall-preinstalledApps. But when I run it, gives this error:

    Add-AppxPackage : Cannot find path 'C:\Program Files\WindowsApps\Microsoft.WindowsCalculator_2018.312.1947.1000_neutral_~_8wekyb3d8bbwe\AppxMetadat a\AppxBundleManifest.xml' because it does not exist.
      My Computer


  2. Posts : 42,992
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Two relatively simple ways if the Powershell commands won't work (see Tutorial below)-
    a. in-place repair install of existing build (See tutorial if unsure) this keeps all progs and data
    b. upgrade to build 1803 (assuming that's problem free for you!)

    That should repair most other damage you may have done.

    For reference:
    Reinstall and Re-register Apps in Windows 10 | Windows 10 Tutorials
      My Computers


  3. Posts : 22
    Microsoft Windows 10 Pro 64-bit 16299 Multiprocessor Free
    Thread Starter
       #3

    Thanks. I've already updated to 1803, but it didn't reinstall apps. So probably I'll have to go with your first option.
      My Computer


  4. Posts : 42,992
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    Sorry, just realised I was wrong about the upgrade- upgrades now respect the fact that you've uninstalled apps. (True for the last 2 or 3.. they hadn't used to). However upgrading should have corrected permissions, so the Powershell command might then have been expected to work, if that was what was stopping it. If, however, you've done something since upgrading to 1803 that stops that working, an in-place upgrade repair may fix it.
      My Computers


  5. Posts : 22
    Microsoft Windows 10 Pro 64-bit 16299 Multiprocessor Free
    Thread Starter
       #5

    Np, thanks anyway. I've changed the owner to Trustedinstaller, and now I can't enter the WindowsApp directory.
      My Computer


  6. Posts : 42,992
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #6

    Try an in-place upgrade repair, or if you were very lucky, Tweaking.com's repair tool (free) might help if you only select the permissions repair.

    (Before hacking the OS you shuold make sure you have a current disk image (e.g. Macrium Refect (free) ) which you can then restore if things go wrong- without technical help or other lengthy trial and error attempts. We strongly recommend its routine use).
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:13.
Find Us




Windows 10 Forums