Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use insignia.exe to codesign a wix bundle

I created a wix bundle which was working properly before codesigning. After googling and checking wix documentation, I got to know that I need to use insignia.exe for code signing the wix bundle. Please any idea on how to use this tool. Thanks in Anticipation.

like image 922
tolem23 Avatar asked Oct 08 '13 17:10

tolem23


People also ask

How do I install a package on Wix?

Open the Package Manager and select Installed Packages. Hover over the package and click the button. If there is an option to select Request Latest Version, the installed version is the latest version or a later version of the package has not been approved yet. Click Request Latest Version to open the request form.

What is bundle and MSI?

A Windows bundle lets you distribute a Microsoft * Windows Installer (MSI) package, Microsoft Windows Software Patch (MSP) package, thin-client application, or other Windows-based applications to a Windows device. You can use ZENworks Control Center or the zman command line utility to create bundles.


1 Answers

I use the next command sequence (it's a part of my cmd file. Certificate is stored in a file on hard drive. If you want to sign your installer by the certificate from the store just fix signing part. All result code check is omitted)

set INSIGNIA_PATH="C:\Program Files (x86)\WiX Toolset v3.8\bin\insignia.exe"

rem Detach engine

del /q engine.exe

%INSIGNIA_PATH% -ib Setup.exe -o engine.exe

rem Sign engine

SignTool.exe sign /f certificate.pfx /p CERT_PASSWORD /t TIMESTAMP_URL engine.exe

rem Attach engine

%INSIGNIA_PATH% -ab engine.exe Setup.exe -o ProductSetup.exe

rem Sign bundle

SignTool.exe sign /f certificate.pfx /p CERT_PASSWORD /t TIMESTAMP_URL ProductSetup.exe
like image 157
AndreiSh Avatar answered Sep 20 '22 23:09

AndreiSh