Jump to content

Windows 10 Intika Tweaks - Restore/Reinstall A Package/Application


Recommended Posts

Posted (edited)

Info :

 

It's better to runs the command as the user TrustedInstaller, to do so, you can use the tool "devxexec"

http://developex.com/custom-software/devx-exec.html

devxexec.exe /user:TrustedInstaller powershell.exe

Note : This step is not needed on most cases, you could use it as alternative if you get errors

 

 

Method 1 - Classic :

 

Prerequisite : Package files need to still be present on the disk (example "c:\windows\systemapps\yourpackage")

 

1. The reinstall command :

Add-AppxPackage -DisableDevelopmentMode -Register c:\windows\systemapps\yourapp\AppXManifest.xml

Method 2 - From DVD:

 

Prerequisite : Nothing

 

1. Restore the package files from the dvd or from an update package

2. From the dvd, install the last version of 7zip (http://www.7-zip.org/download.html) and open the system image from the disk "x:\sources\image.wim" (7zip need to be lauched as trustedinstaler) restore the files from directory 1 to your disk (restore just the package file like c:\windows\systemapps\yourapp)

3. Reinstall the package

Add-AppxPackage -DisableDevelopmentMode -Register c:\windows\systemapps\yourapp\AppXManifest.xml

Alternative command :

Add-AppxProvisionedPackage -Online -PackagePath c:\PackagePath\????.appxbundle -LicensePath c:\PackagePath\License.xml

Method 3 - From an update package :

1. Download the needed package (kb msi file, just the kb of the updated app)

2. Extract the packages files

msiexec /a c:\package.msi /qb TARGETDIR=c:\package

3. Copy the files to their original location (example "c:\windows\systemapps\yourpackage")

4. Reinstall the package 

Add-AppxPackage -DisableDevelopmentMode -Register c:\windows\systemapps\yourapp\AppXManifest.xml

Alternative command :

Add-AppxProvisionedPackage -Online -PackagePath c:\PackagePath\????.appxbundle -LicensePath c:\PackagePath\License.xml

Method 4 - Restoration after uninstalling it with install_wim_tweak :

 

Here is how (i took ShellExperienceHost as exemple)

 

0. I used this to manipulate the registry "devxexec.exe /user:TrustedInstaller regedit.exe"

1. Restore Application File (from a backup or from dvd or from updates, check firsts steps of other methods to see how)

C:\Windows\SystemApps\ShellExperienceHost...

2. Delete a registry entry

\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\CatalogsToUninstall\ *** YOUR PACKAGE NAME (ShellExperienceHost bla bla) ***

3. Restore those registry keys and it's contents

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Windows-ShellExperienceHost-Package~31bf3856ad364e35~x86~fr-FR~10.0.10240.16384][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Windows-ShellExperienceHost-Package~31bf3856ad364e35~x86~fr-FR~10.0.10240.16384\Owners][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\PackageIndex\Microsoft-Windows-ShellExperienceHost-Package~31bf3856ad364e35~x86~~0.0.0.0][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\PackageIndex\Microsoft-Windows-ShellExperienceHost-Package~31bf3856ad364e35~x86~fr-FR~0.0.0.0][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\PackageDetect\Microsoft-Windows-ShellExperienceHost-Package~31bf3856ad364e35~x86~~0.0.0.0][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\PackageDetect\Microsoft-Windows-ServerCore-Package~31bf3856ad364e35~x86~~0.0.0.0][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\PackageDetect\Microsoft-Windows-Foundation-Package~31bf3856ad364e35~x86~~0.0.0.0][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Windows-ShellExperienceHost-Package~31bf3856ad364e35~x86~~10.0.10240.16384][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Windows-ShellExperienceHost-Package~31bf3856ad364e35~x86~~10.0.10240.16384\Owners]

4. : you need to restore catalog files too in "C:\Windows\servicing\Packages" (2 files)

 

5. : you need to check if the package have been updated... and catalog the update too (run "Dism /Online /Cleanup-Image /ScanHealth") and check errors there, you should have some thing like "Package_392_for_KB3081455~31bf3856ad364e35~x86~~10.0.1.3" missing or so... in other term you need to restore "Package_392" registry keys and catalog files too

Simply just repeat all the steps for "Package_392" which is the updated package name .

 

6. : Reboot and RocknRoll !!

 

 

Cheers ^^

Edited by intika

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...