A small tool to help automate resigning Appx Packages with the help of MS tooling
A tool to help automate re-(packaging/signing) (and optionally modifying) Appx/Msix Packages with the help of MS tooling
.bat
) that will install the cert and launch the packageDouble click on pkgrsn.exe
then follow the instructions
Config file: pkgrsn.exe.Config
Option: debugOutput
Debug output state [0: off, 1:on]
Option: modifyByDefault
Allow package modification by default [0: off, 1:on]
Option: defaultPublisher
This will be used only if getting original publisher failed
Option: defaultPFXPassword
default pfx password for (exist or new) certificate [any password you choose]
IMPORTANT: when you need to share this app be sure to remove your saved password from config file!
Option: foldersToCopy
Folders to be copied to the output package path (only name not full path)
Option: filesToCopy
Files to be copied to the output package path (only name not full path)
Note that it's preferred to use this app standalone
pkgrsn -a "Path to package" --skip [--modify]
-a, --app-package Required. The input package to be re-signed
-p, --publisher The name of the publisher (Must match the AppxManifest.xml publisher).
-o, --output-folder The desired output folder for the signed package
-x, --pfx PFX file for package signing
-s, --password PFX password
-m, --modify Allow package modifications
-k, --skip Apply default config for quick re-sign
--help Display this help screen.
--version Display version information.
This tool uses utilities from Windows SDK (All rights to these are reserved to Microsoft):
makeappx.exe
makecert.exe
signtool.exe
pvk2pfx.exe
powershell
cmd