I\'d like to check programatically if a file has been digitally signed or not.
For the moment, I found a rather obscure code in MSDN, that doesn\'t compile...
Also you can try to use npm package sign-check for that purposes.
sign-check
This package implements WinVerifyTrust API and has simple usage:
npm install -g sign-check sign-check 'path/to/file'