Signtool errors with a file not found even though the file exists.

Anonymous
2025-01-01T14:48:45+00:00

Recently we've rebuilt a Azure VM we use to build installers with Inno Setup with signing. All our installer generation processed worked a few days ago.

Now we are getting an error a file doesn't exist even though it clearly exists. We are thinking this is a type of access or permissions issue?

Here is the command we are using:

C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64>signtool sign /debug /fd SHA256 /tr "http://timestamp.acs.microsoft.com" /td SHA256 /dlib "C:\Installs\Agent\Extras\tsc-dll\Azure.CodeSigning.Dlib.dll" /dmdf "C:\Installs\Agent\Extras\metadata.json" "C:\Installs\Working\DataAgent.exe

Error:

SignTool Error: File not found: C:\Installs\Working\DataAgent.exe

Here is a screenshot of the error:

*** Moved from Windows / Other/Unknown / Other Windows apps ***

Windows for business Windows Client for IT Pros Storage high availability Virtualization and Hyper-V

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2025-01-02T16:22:41+00:00

    The issue was the metadata.json location was incorrect.

    The error message was hilariously unhelpful.

    0 comments No comments
  2. Anonymous
    2025-01-03T02:10:52+00:00

    Hello,

    Thank you for posting in Microsoft Support Community. Based on the description, I understand your question is related to Sign Tool.

    Since Sign Tool is not currently supported in the Microsoft Support Community, it is recommended to repost your question in Microsoft Q&A.

    https://learn.microsoft.com/en-us/answers/questions/

    Thank you for your understanding and support. If you have any question or concern, please feel free to let us know.

    0 comments No comments