How to Add a Digital Certificate to a SingleImage Install Shield Installation Program

依然范特西╮ 提交于 2019-12-01 03:01:13

I going to answer my own question. Since posting my question I found that the limited edition of Install Shield in Visual Studio 2012 can be setup to sign the installation program (if you have a proper digital certificate).

This is found under: Builds/Express/SingleImage. There is a tab named "Signing". Enter the path/filename for the Digital Certificate File, the Certificate Password, and specify which output files you want to sign. Install Shield then signs the installation program upon a build.

My apologies for asking this question too soon. I should have done more research first.

InstallShield versions prior to IS 2015 do not support SHA-256 certs. So, while Mike's answer is correct, it no longer does you any good without the new IS, because Microsoft requires SHA-256 as of January 1st, 2016.

But... IS let out a little secret a while back about this before they must have known what they were doing. See this thread on the IS forum.

In case they take that down, here's the important part :

"If you need this kind of signature immediately, you can either sign files yourself at a later point, or create a wrapper for signtool.exe that intercepts the command line arguments we pass to \System\signtool.exe and does something else instead."

So as Mike said, you can't simply sign the outer exe, but by replacing their signtool.exe you should be able to sign the inner msi as well.

I'm looking into implementing this work around now. If anyone else tries this, let us know your results.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!