10

After upgrade to VS 2017 i got "Error An error occurred while signing: SignTool.exe not found." But only using MSbuild on the Visual Studio publish there's no problem.

I already checked folder "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin" and in fact there's no SignTool.exe present. But there was before installing VS2017, any ideas?

I followed this issue but no luck How to install SignTool.exe for Windows 10

Community
  • 1
  • 1
Vitor Silva
  • 161
  • 1
  • 1
  • 11

6 Answers6

17

Signtool is included with the Windows 10 SDK

  1. Open Visual Studio installer.

  2. Switch to the "Individual Components" tab

  3. Choose the version of the SDK that suits your needs.

enter image description here

Multiple copies may be installed.

enter image description here

Kuffs
  • 35,581
  • 10
  • 79
  • 92
4

Start Developer Command Prompt for VS 2017 then it is in the path variable signtool

That seems to do the trick, now the problem is with setup.bin file.

error MSB3147: Could not find required file 'setup.bin' in csproj folder

Vitor Silva
  • 161
  • 1
  • 1
  • 11
4

C:\Program Files (x86)\Microsoft SDKs\ClickOnce\SignTool> This is where its there in my System.

achand8238
  • 124
  • 6
2

The all solutions didn't worked for me ; finally i just copied signtool.exe to the project folder and then worked. You can download the signtool.exe from internet or install Windows 10 SDK by visual studio installer and then copy from "C:\Program Files (x86)\Microsoft SDKs\ClickOnce\SignTool".

nzrytmn
  • 6,193
  • 1
  • 41
  • 38
1

I found it under C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin

It could be because it was there before the vs2017 installation.

It doesn't harm to check :)

Samuel
  • 1,949
  • 4
  • 18
  • 30
  • In my case it doesn't appear to be there! Even if I copy it there it doesn´t work either! I think is like you say, it probably was already there, unnistalling VS2015 must've broken some enviroment variables. i've copy the folder to my project folder, and solved it – Vitor Silva Jul 11 '18 at 13:54
0

So the problem I had with this was that the path variable wasn't set up. I ran

set PATH="C:\Program Files (x86)\Microsoft SDKs\ClickOnce\SignTool";%PATH%

in the Developer Command window before trying to sign anything.

If you do it this way you will need to run the set path every time you want to use it unless you add it to the path environment variable. I hope this helps.

Terence
  • 1
  • 2