VS2017 suffers from very serious damage to the installation location of the installation path. Most of the damn stupid things they did was make the title of the publication (Professional, Enterprise, possibly Community) part of the way. This makes it difficult to reliably search tools from one machine to another.
There is one environment variable that, I think, can solve the problem, the VSAPPIDDIR variable stores the path to the folder where the IDE is installed (devenv.exe). Therefore, if you want to run vcvars32.bat from the build event, you should use
call "%vsappiddir%..\..\VC\Auxiliary\Build\vcvars32.bat" x86
Note that vc, not vs, vsvars32.bat no longer exists. You could support the "Developer Command Line:
call "%vsappiddir%..\tools\vsdevcmd.bat"
But judging by your link, you really want to run the editbin.exe utility:
"%vsappiddir%..\..\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\editbin.exe" args...
Version number 14.10.25017 is also not a joy, there is no real understanding of how this will change from one update to another. It will probably be.
Hans Passant Mar 15 '17 at 12:20 2017-03-15 12:20
source share