Repackage UWP Apps
Repackage UWP Apps
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.)