Signing the msi and setup.exe with signtool.exe

by Markus 8. December 2009 18:40

Signing the msi and setup.exe with signtool.exe

 

Step 1

  • Right click the Project in the Solution Explorer and click on Unload Project
  • Right click the Project in the Solution Explorer again and click on Edit <ProjectName>

 

Step 2

You can call the SignTool.exe in the After Build Target like this:

 

<Target Name="AfterBuild">
  <GenerateBootstrapper ApplicationFile="$(TargetFileName)" ApplicationName="My Application Name" BootstrapperItems="@(BootstrapperFile)" ComponentsLocation="Relative" CopyComponents="True" OutputPath="$(OutputPath)" Path="C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\" />

  <Exec Command="&quot;C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\Signtool.exe&quot; sign /a /v /sha1 B12CB2710390A365DB06423DD1246A7DC2A9FBF7 /t http://timestamp.verisign.com/scripts/timstamp.dll &quot;$(TargetPath)&quot;" />

  <Exec Command="&quot;C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\Signtool.exe&quot; sign /a /v /sha1 B12CB2710390A365DB06423DD1246A7DC2A9FBF7 /t http://timestamp.verisign.com/scripts/timstamp.dll &quot;$(TargetDir)Setup.exe&quot;" />

</Target>

 

< Back to Content

Tags:

About MaHop.Net

Just look on our Webpage http://www.mahop.net

Tag cloud