WiX: Digitally Sign BootStrapper project

前端 未结 4 967
陌清茗
陌清茗 2020-12-04 14:27

I have a project for which I have built a WiX msi file. I also have a WiX bootstrapper (exe file) that checks for the existence of C++ 2005, installs it if not found and th

4条回答
  •  悲哀的现实
    2020-12-04 15:04

    Further @jchoover's answer, you have 3 options when signing bundles:

    • Build the bundle unsigned, then sign it later. However, you also need to sign the engine exe which is embedded within the bundle. As @jchoover states, you can use insignia to get around this by extracting the engine to a file. You can then sign the file using your normal process (for example, with signtool.exe) and then import it back into the bundle

    • Add the SignBundle and SignBundleEngine targets to your project(s). You can do this by opening them up in a text editor, and editing the underlying MSBuild code. @jchoover's answer describes how you can do this.

    • Create a .targets file with the SignBundle and SignBundleEngine targets, and passing the path using the CustomAfterWixTargets property:

      msbuild your.sln /p:CustomAfterWixTargets=customafterwix.targets /p:SignOutput=true

提交回复
热议问题