Setting the UAC 'Publisher' Field for a NSIS Installer

后端 未结 3 1031
梦如初夏
梦如初夏 2021-01-31 05:26

When I open my installer(that I created using NSIS), the UAC dialog appears with information about my installer. The field Publisher is \'unknown\'. I\'ve heard of digi

3条回答
  •  伪装坚强ぢ
    2021-01-31 05:49

    It seems to be important to sign the installer file with two signatures, as svcabre implemented it:

    Using both sha1 algorithm on the one hand

    "c:\Program Files (x86)\Windows Kits\10\bin\x86\signtool.exe"
    sign /f "YourCertificateFileHere.pfx" /p YourPasswordHere 
    /fd sha1 /t http://timestamp.comodoca.com /v "YourInstallerFilePathHere"
    

    and sha256 on the other hand

    "c:\Program Files (x86)\Windows Kits\10\bin\x86\signtool.exe" 
    sign /f "YourCertificateFileHere.pfx" /p YourPasswordHere 
    /fd sha256 /tr http://timestamp.comodoca.com?td=sha256 
    /td sha256 /as /v "YourInstallerFilePathHere"
    

    With this option, also windows 10 showed the certificate holder correctly.

提交回复
热议问题