Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Repackage UWP Apps

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Repackage UWP apps

Goal: Mainly to transfer UWP apps from one PC to another without having to re-download them.
(C’mon MS, wtf?! >.>)

To run these commands, you will need the get the Windows 10 SDK and then open a command
window at this location (Shift + Right-click):
D:\Programs\Windows Kits\10\bin\x64\
(Default: C:\Program Files (x86)\Windows Kits\10\bin\x64\)
========================================================================
Steps:
1. Copy the application you want from the WindowsApps directory and paste it somewhere
like the desktop. In this instance, I will choose the Halo app. (C:\Program
Files\WindowsApps\Microsoft.Tomp_1.0.2043.0_x64__8wekyb3d8bbwe).
2. Delete the 'AppxSignature.p7x' file from your copied application folder.
3. Run this command to create an appx with those files from your copied application folder
(This may take time depending on your computer’s specs and the size of the
application.):
- makeappx pack /d C:\Path\To\Your\Copied.Application_1.0.2043.0_x64__8wekyb3d8bbwe /p
C:\Users\You\Desktop\YourPackageName.appx /l
4. You will now need to create a certificate for the appx in order for you to be able to install
it to other PCs (and the PC you’re currently on). To create a certificate, follow these
commands:
//The name should be the same in AppxManifest.xml (<Identity …
Publisher="CN=Meme, O=Meme, L=Address, S=City, C=AU")
//Do not put a password in when it prompts you.
- MakeCert /n "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" /r /h
0 /eku "1.3.6.1.5.5.7.3.3,1.3.6.1.4.1.311.10.3.13" /e 12/20/2999 /sv MyKey.pvk MyKey.cer
- Pvk2Pfx /pvk MyKey.pvk /spc MyKey.cer /pfx MyKey.pfx
- SignTool sign /a /v /fd SHA256 /f MyKey.pfx C:\Users\You\Desktop\YourPackageName.appx

5. Now the final step is to get your PC to trust your self-signed certificate so that you can
install the appx. In order to do this, open CMD as administrator, and type this:
- Certutil –addStore TrustedPeople “D:\Programs\Windows Kits\10\bin\x64\MyKey.cer”

Done.
You can now install that appx on your computer. :3
========================================================================
Note:
- Changing the appid may cause the application to crash so it is not recommended.
- This method will replace the original application with the new modified application
you have just made. (Recommended to uninstall original application before installing
the appx.)

Common errors and how to fix them:


- “Ask the app developer for a new app package. This one isn't signed with a trusted
certificate (0x800B0100)”. You have not signed your appx package. Go to step 4.
- “Either you need a new certificate installed for this app package, or you need a new
app package with trusted certificates. Your system administrator or the app
developer can help. A certificate chain processed, but terminated in a root certificate
which isn't trusted (0x800B0109)”. Your computer hasn’t installed the self-signed
certificate you signed your appx package with. Go to step 5.
- “To install this app, turn on sideloading mode in Settings > Update & security > For
developers. If you can't turn it on, ask your system administrator to unlock the
machine for sideloading (0x80073CFF)”. You have not enabled sideloading. Follow
the instructions to turn it on.

You might also like