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=""C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\Signtool.exe" sign /a /v /sha1 B12CB2710390A365DB06423DD1246A7DC2A9FBF7 /t http://timestamp.verisign.com/scripts/timstamp.dll "$(TargetPath)"" />
<Exec Command=""C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\Signtool.exe" sign /a /v /sha1 B12CB2710390A365DB06423DD1246A7DC2A9FBF7 /t http://timestamp.verisign.com/scripts/timstamp.dll "$(TargetDir)Setup.exe"" />
</Target>
< Back to Content
7c4e5aaa-4455-4484-acbd-944abe52c380|1|5.0
Tags: