Unable to find makecert.exe


The program may not find makecert.exe because the search path is hard-coded as:
Private Const SEARCHPATH As String = "%ProgramW6432%\Microsoft Visual Studio 8\Common7\Tools\Bin;%ProgramW6432%\Microsoft Visual Studio 10\Common7\Tools\Bin;%ProgramW6432%\Microsoft SDKs\Windows\v7.1\Bin\x64;%ProgramW6432%\Microsoft SDKs\Windows\v7.1\Bin;%ProgramFiles%\Microsoft Visual Studio 8\Common7\Tools\Bin;%ProgramFiles%\Microsoft Visual Studio 10\Common7\Tools\Bin"
My PC (Windows 7 x64) has makecert.exe in %ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.0A\Bin and %ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.0A\Bin\x64\makecert.exe, and %ProgramFiles% = %ProgramW6432% = C:\Program Files. So the program could't find makecert.exe.

Better to add ".;" to the top of search path to search current directory, add paths under %ProgramFiles(x86)%, and change "Microsoft Visual Studio 9/10" to "Microsoft Visual Studio 9.0/10.0" because mine is like that.
Plus, much better if it is configurable.


LordMike wrote Jan 25, 2014 at 6:32 PM

I too, have this issue.
My Makecert is found under:

C:\Program Files (x86)\Windows Kits\8.0\bin\x86\makecert.exe
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\makecert.exe

wrote Sep 19, 2014 at 11:42 AM

wrote Oct 19, 2016 at 3:35 AM

Sundog1966 wrote Oct 19, 2016 at 3:42 AM

I just installed he community edition of VS 2015 and makecert is under C:\Progam files (x86)\Windows kits\10\bin which is completely Different. We need the program to look for it or be able to ask us where it is using a browse file explorer dialog. This way we control where it look for it. Usually I keep my Development tools (especially things like make cert that I use once in a while) on a server and not on my local development / testing machine. I also have a couple of Azure virtual environments that I use as well. I am actually right now trying to use it to generate a key for a point to site setup. The command structure for makecert is obtuse.