How do you get the path to SignTool.exe when using Visual Studio 2012?
In Visual Studio 2010, you could use
This approach I'm using just relies on the standard build events:
powershell -Command "(Resolve-Path \"C:\Program Files (x86)\\Windows Kits\\10\\bin\\*\\x64\" | Select-Object -Last 1).Path" > stpath
set /p STPATH=<stpath
del stpath
"%STPATH%\signtool.exe" sign ..........
It will cope with new paths as new Windows SDKs get installed and pick the latest one.