0x800700C1 Signing MSIX - Advanced Installer Community
Mikeh36
Posts: 2
Joined: Thu Mar 03, 2022 6:06 pm

0x800700C1 Signing MSIX

I'm trying to repackage an exe into an msix to hopefully app attach it in Azure. I'm using a code signing cert generated by our CA that I've used successfully on other msix projects but on this one I keep getting error 0x800700C1 when it's trying to sign the msix. In the user guide it talks about needing to remove the previous signatures but on what file? It's not saying what file is causing the problem.

Full Error messages here:
The digital signing of the MSIX/APPX failed. Error message: 'Done Adding Additional Store

Number of errors: 1
SignTool Error: SignedCode::Sign returned error: 0x800700C1
For more information, please see https://aka.ms/badexeformat
SignTool Error: An error occurred while attempting to sign: <redacted>\FlexiBake-x64.msix
File "<redacted>\FlexiBake-x64.msix" can not be signed!

For a possible solution please check our Digital Signature FAQ from:
https://www.advancedinstaller.com/user- ... ature.html '

Build finished because an error was encountered. See Issues pane for more actions.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: 0x800700C1 Signing MSIX

Hello and welcome to our forums,

As you can already see, for signing purposes, we use a 3rd party tool - SignTool.

I am not really familiar with that error code, to be honest with you, but by your description I would assume that it complains about the signature of your .EXE (the one which you try to repackage into an MSIX).

I found the following Microsoft forum's thread:

Why SignTool return error: 0x800700C1

which you may find useful.
Unfortunatelly, the error code is not just a sign of bad exe (using Win32 signtool on x64 binary. Same error code might be reported when you are trying to re-sign an already signed binary file.

Basically, you need first remove existing signature, then it could be signed again.
Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mikeh36
Posts: 2
Joined: Thu Mar 03, 2022 6:06 pm

Re: 0x800700C1 Signing MSIX

Yes that's mentioned in the user guide as well with a link to here: https://markcz.wordpress.com/2013/01/26 ... x800700c1/

I tried the work around with no success.

However I was able to convert it to a working msix using the Microsoft convertor and PSFTooling.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: 0x800700C1 Signing MSIX

Hello,

Thank you for your followup on this!

I am glad you managed to succesesfully convert your setup.

If there is anyhing else I can help you with, please let me know.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”