Path to SignTool.exe or “Windows Kits” directory when using Visual Studio 2012

前端 未结 7 1785
-上瘾入骨i
-上瘾入骨i 2021-01-30 09:04

How do you get the path to SignTool.exe when using Visual Studio 2012?

In Visual Studio 2010, you could use



        
相关标签:
7条回答
  • 2021-01-30 09:36

    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.

    0 讨论(0)
提交回复
热议问题