3

I have signed my MSI installer with a valid certificate. When I install this MSI the UAC prompts and display the Publisher name properly. However, when I uninstall the MSI UAC prompts saying "Unknown Publisher".

If checked in the C:\Windows\Installer folder for the cached installer and it doesn't have the certificate!

So why doesn't it keep the certificate for the cached installer?

Echilon
  • 10,064
  • 33
  • 131
  • 217

1 Answers1

1

If you're running on Windows Vista (or Windows Server 2008) this is a well-known behavior of Windows Installer archive.

Windows Installer strips-out embedded cabinets to save space. Unfortunately, altering the .msi in this way also invalidates the digital signature.

You can avoid this by building your .msi without embedded cabs; that is have all the files you install be outside the .msi itself. If you're seeing this on Windows 7 or later, however, that would be unexpected.

Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
Michael Urman
  • 15,737
  • 2
  • 28
  • 44
  • [Here is a whole messy answer on MSI caching behavior](https://stackoverflow.com/a/1189524/129130) and how it has changed between OS versions. – Stein Åsmul Apr 03 '21 at 01:32