question

RomainCendre-9755 avatar image
0 Votes"
RomainCendre-9755 asked

How to locate SignTool properly

Hi everyone,
To explain my wish, I want to add post-build automatic step to sign my exe file.
I'm working with MinGW and MSVC compiler, and I would like to locate properly the signtool without putting the path in a hard way.
Why ? Because Microsoft won't stop to move it, and I want to make a toolchain that stays robust over timer !

I tried using this CMake module that seems to use the register to locate the current SDK path and signtool : https://github.com/Monetra/mstdlib/blob/master/CMakeModules/CodeSign.cmake
But, it seems that HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows Kits\\Installed Roots doesn't necessarily contain the right location... (sometimes I wonder whos in charge of these things...).

Can anyone as similar needs, and find a "best" way to properly detect this tool?
Best regards !

office-teams-app-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers