oleg-shilo / wixsharp

Framework for building a complete MSI or WiX source code by using script files written with C# syntax.
MIT License
1.11k stars 176 forks source link

Signing my msi files #993

Closed ltemimi closed 3 years ago

ltemimi commented 3 years ago

Hi Oleg

I have a pfx code-signing certificate is it possible to sign my produced msi or exe installers in an automatic way perhaps part of the compile?

Regards

Laz

oleg-shilo commented 3 years ago

please see "signing" sample:


project.DigitalSignature = new DigitalSignature
                           {
                               PfxFilePath = "wixsharp.pfx",
                               Password = "my_password",
                               Description = "MyProduct",
                               TimeUrl = new Uri("http://timestamp.verisign.com/scripts/timstamp.dll")
                           };
ltemimi commented 3 years ago

Thanks Oleg I will try it