How to use MSBuild to build a Visual Studio Setup Project
This works for me:
<Exec Command=""$(ProgramFiles)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com" your.vdproj /build "Debug|AnyCPU""/>
You don't need the space in any cpu and you need to call devenv.com, also assuming you have those build configuration existing?