intika Posted November 12, 2015 Posted November 12, 2015 (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.htmldevxexec.exe /user:TrustedInstaller powershell.exeNote : 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.xmlMethod 2 - From DVD: Prerequisite : Nothing 1. Restore the package files from the dvd or from an update package2. 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 packageAdd-AppxPackage -DisableDevelopmentMode -Register c:\windows\systemapps\yourapp\AppXManifest.xmlAlternative command :Add-AppxProvisionedPackage -Online -PackagePath c:\PackagePath\????.appxbundle -LicensePath c:\PackagePath\License.xmlMethod 3 - From an update package : 1. Download the needed package (kb msi file, just the kb of the updated app)2. Extract the packages filesmsiexec /a c:\package.msi /qb TARGETDIR=c:\package3. 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.xmlAlternative command :Add-AppxProvisionedPackage -Online -PackagePath c:\PackagePath\????.appxbundle -LicensePath c:\PackagePath\License.xmlMethod 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 tooSimply just repeat all the steps for "Package_392" which is the updated package name . 6. : Reboot and RocknRoll !! Cheers ^^ Edited November 12, 2015 by intika
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now