mjmeans / appx-backup Goto Github PK
View Code? Open in Web Editor NEWPowerShell script to backup an installed Windows Store App to an installable Appx file.
PowerShell script to backup an installed Windows Store App to an installable Appx file.
Parameter -WSTools
for location needs different location for MakeAppx.exe
:
C:\Program Files (x86)\Windows Kits\10\App Certification Kit
C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64
C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x86
C:\Program Files (x86)\Windows Kits\10\tools\bin\i386
First, thank you very much for the script! I'm now able to use an app again that received an unwanted update on the store that rendered it unusable for me.
One issue however is that the Windows Store tries to update it to the latest version each time I check for updates. I'd assumed that like the Google Play store an app wouldn't update if its signature didn't match, but it looks like the Windows Store will still update a side-loaded app with a different key. Is there any way to prevent this, short of stopping all automatic Windows Store updates for all other apps as well?
I thought I'd try out the script by backing up the solitaire app and reinstall from the backup:
.\Appx-Backup.ps1 -WSAppPath "C:\Program Files\WindowsApps\Microsoft.MicrosoftSolitaireCollection_4.9.6151.0_x64__8wekyb3d8bbwe" -WSAppOutputPath "e:\tmp\appx" -WSTools "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x86\"
This created two files in e:\tmp\appx. I installed the certificate and then tried double-clicking the .appx file to install. It threw up a dialog, I told it to install, it ran for a little bit...and then failed with the following:
App installation failed with error message: Deployment Add operation with target volume C: on Package Microsoft.MicrosoftSolitaireCollection_4.9.6151.0_x64__8wekyb3d8bbwe from: (Microsoft.MicrosoftSolitaireCollection_4.9.6151.0_x64__8wekyb3d8bbwe.appx) failed with error 0x80070057. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues. (0x80070057)
I also tried another app and got the same result. Has something changed in newer versions of Windows 10? (I'm running 21H1.)
Super helpful tool! Ran into a gotcha that isn't worth fixing, but just throwing it here as an issue in case someone else runs into it.
If you have a trailing slash on the -WSAppPath parameter, you'll get a non-intuitive error from the MakeAppx call. Took me a few minutes to figure that out, so hoping this helps someone else out in the future!
hi, is it possible to download the archive from microsoft store, whithout installation?
This totally my fault. I couldn't make this (backup-recover). If any body make a video about backup and recovery store apps with this tool it will be useful for everyone. Thanks
In C:\Users\favre\OneDrive\Desktop\ps1\Appx-Backup.ps1:193 car:19
Sign up
~
E commerciale (&) non consentita. L'operatore & è riservato per utilizzi futuri. Utilizzare "&" per passare la e
commerciale come stringa.
In C:\Users\favre\OneDrive\Desktop\ps1\Appx-Backup.ps1:196 car:180
~
Operatore '<' riservato per utilizzi futuri.
In C:\Users\favre\OneDrive\Desktop\ps1\Appx-Backup.ps1:200 car:16
~
Operatore '<' riservato per utilizzi futuri.
In C:\Users\favre\OneDrive\Desktop\ps1\Appx-Backup.ps1:205 car:148
~
Operatore '<' riservato per utilizzi futuri.
In C:\Users\favre\OneDrive\Desktop\ps1\Appx-Backup.ps1:209 car:16
~
Operatore '<' riservato per utilizzi futuri.
In C:\Users\favre\OneDrive\Desktop\ps1\Appx-Backup.ps1:224 car:7
~
Operatore '<' riservato per utilizzi futuri.
In C:\Users\favre\OneDrive\Desktop\ps1\Appx-Backup.ps1:229 car:7
~
Operatore '<' riservato per utilizzi futuri.
In C:\Users\favre\OneDrive\Desktop\ps1\Appx-Backup.ps1:234 car:7
~
Operatore '<' riservato per utilizzi futuri.
In C:\Users\favre\OneDrive\Desktop\ps1\Appx-Backup.ps1:239 car:7
~
Operatore '<' riservato per utilizzi futuri.
In C:\Users\favre\OneDrive\Desktop\ps1\Appx-Backup.ps1:244 car:7
~
Operatore '<' riservato per utilizzi futuri.
Non sono stati segnalati tutti gli errori di analisi. Correggere gli errori segnalati e riprovare.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : AmpersandNotAllowed
Anyway to make it so the password is a variable, vs the constant popups? I'm trying to repair a vital virtual machine.
please provide the appx file of wreck it ralph, thanks
Can you upload the appx to the internet archive because it is lost media?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.