PDA

View Full Version : Code signing with USB token: no dialog in Windows 7


martijntonies
10-18-2023, 03:45 AM
Hi,

I'm using a code signing method with signtool and YubiKey.

On Windows 10 (VMWare), this step executes, shows the pin code dialog and signs the file when the pin is entered.

On Windows 7 (VMWAre), this step executes, but does not show the dialog and then just hangs, counting the seconds the task is taking.

When I use signtool manually on Windows 7, the pin code dialog is being displayed without problems.

Any idea what to do? Currently using Visual Build Pro, 10.9


With regards,

Martijn Tonies

kinook
10-18-2023, 03:18 PM
1) Check the 'Log the command-line that is used' on the Advanced tab of the Sign Code action
2) Rebuild the step
3) Copy the signcode command-line from the build output into a new Run Program action
4) Uncheck 'Hide application window' on the Program tab
5) Build the Run Program step

martijntonies
10-19-2023, 02:08 AM
I'll give it a try.