Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove digital signature from an MSI installer?

I can't seem to find a way to remove a digital signature from an .msi file that was previously added to it by the signtool.

Any idea how to do this?

like image 859
c00000fd Avatar asked Oct 19 '25 16:10

c00000fd


2 Answers

Was in a similar situation: I customized a vendor-supplied MSI file, which invalidated the original digital signature. I then needed to remove (delete entirely, rather than replace) that signature, so that my users would not get errors when downloading and running the file on Windows 10.

Tried InstallShield, XML2MSI, msidb and an array of different MSI editors to no avail. What ultimately worked for me was to remove the digital signature stream (in my case it was called "[5]DigitalSignature") from the MSI Compound File using an editor.

Personally, I used MiTeC's Structured Storage Viewer to do this, but other tools may work for you.

Note: the SSV displayed garbage for some of the stream names in my MSI, but still worked correctly.

like image 187
Daibhi O Domhnaill Avatar answered Oct 22 '25 06:10

Daibhi O Domhnaill


Performing an administrative installation removes the digital signature from the package. An administrative installation modifies the installation package in order to add the AdminProperties stream, which would invalidate the original digital signature. An administrator can resign the package.

like image 41
Tony Vincent Avatar answered Oct 22 '25 05:10

Tony Vincent



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!