I am trying to set up the Windows SDK environment for compilation of an other C++ project (Qt phonon library). However the script seems to be totally broken. It does not work and destroys the path variable.

This is what the path looks like before anything is called:

PATH=C:\Program Files\PC Connectivity Solution\;C:\Program Files\MiKTeX 2.8\mikt
32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;
C:\Program Files\TortoiseSVN\bin;C:\Program Files\doxygen\bin;C:\Program Files\C
ommon Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\MATLAB\R2008a\bin;C:\Pr
ogram Files\MATLAB\R2008a\bin\win32;C:\Program Files\ispell;C:\Program Files\gs\
gs8.63\bin;C:\Program Files\gnuplot\bin;"C:\Program Files\Microsoft SDKs\Windows
\v7.0\bin";"C:\Program Files\Microsoft Visual Studio 8\VC\bin"

If I call SetEnv.cmd it is messed up:

PATH=;C:\Program Files\Microsoft Visual Studio 9.0vcpackages;C:\Program Files\Mi
crosoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft SDKs\Windows\v7

Apart from that the script fails to find the compilers, though the SDK was installed completely.

The x86 compilers are not currently installed.
Please go to Add/Remove Programs to update your installation.
Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v7.0
Das Sprungziel - Set_x86 wurde nicht gefunden.
Debugging the code that is throwing this error the following seems to happen
SET "VCRoot=%ProgramFiles%\Microsoft Visual Studio 9.0"
SET "VCTools=%VCRoot%Bin"
IF NOT EXIST "%VCTools%\cl.exe" (
  SET VCTools=
  ECHO The x86 compilers are not currently installed.
  ECHO Please go to Add/Remove Programs to update your installation.
  ECHO .
So the script if looking for C:\Program Files\Microsoft Visual Studio 9.0\Bin\cl.exe – which does not exist, because there is no bin path. The correct path would be C:\Program Files\Microsoft Visual Studio 9.0\VC\bin.

If anyone has any idea, that would be helpfull.