未成功安装wix引导程序输出的数字符号后,exe未安装

问题描述 投票:0回答:1

如果尝试在没有数字签名的情况下引导程序输出.exe文件安装,则可以正常工作。但是在数字符号安装程序显示错误之后。 enter image description here

签署.exe,在/ Project标记前使用bootstrap.wixproj文件中的波纹管代码。

    <!-- SignOutput must be present in some PropertyGroup to trigger signing. -->
  <PropertyGroup> 
    <SignOutput>true</SignOutput>
  </PropertyGroup>

   <!-- Sign the bundle engine -->
  <Target Name="SignBundleEngine">
    <Exec Command="&quot;C:\Program Files (x86)\Microsoft SDKs\ClickOnce\SignTool\signtool.exe&quot; sign /tr http://timestamp.digicert.com /td sha512 /fd sha512 /f &quot;D:\Digital Sign Resorce\CARoot.pfx&quot; /p Test123 /d &quot;My Project Name&quot; &quot;D:\Project\xxx\v3.2.0.0\SetupWiX\bin\Release\SetupWiX.msi&quot;" />
  </Target>

  <!-- Sign the final bundle -->
  <Target Name="SignBundle">
    <Exec Command="&quot;C:\Program Files (x86)\Microsoft SDKs\ClickOnce\SignTool\signtool.exe&quot; sign /tr http://timestamp.digicert.com /td sha512 /fd sha512 /f &quot;D:\Digital Sign Resorce\CARoot.pfx&quot; /p Test123 /d &quot;My Project Name&quot; &quot;D:\Project\xxx\v3.2.0.0\Bootstrapper_New\bin\Release\MyApp.exe&quot;" />
  </Target>
wix install sign bootstrapper
1个回答
0
投票

这是对我有用的。我将证书(和一个证书)安装在我的构建用户服务帐户的个人存储中,以便自动选择它而无需密码或访问其他位置的PFX文件。我的MSI已在上一个构建步骤中签名。

  <Target Name="SignBundleEngine">
    <Exec Command="signtool.exe sign /tr http://timestamp.digicert.com &quot;@(SignBundleEngine)&quot;" />
    <Exec Command="Signtool.exe sign /fd SHA256 /tr http://timestamp.digicert.com /td sha256 &quot;@(SignBundleEngine)&quot;" />
  </Target>
  <Target Name="SignBundle">
    <Exec Command="signtool.exe sign /tr http://timestamp.digicert.com &quot;@(SignBundle)&quot;" />
    <Exec Command="Signtool.exe sign /fd SHA256 /tr http://timestamp.digicert.com /td sha256 &quot;@(SignBundle)&quot;" />
  </Target>
© www.soinside.com 2019 - 2024. All rights reserved.