2

I am writing a VS Integration Package and setup using Visual Studio Setup Package. I have a custom action that runs "devenv.exe /setup" when the package is installed.

If the user has VS 2005 and 2008 installed, do I need to run devenv.exe /setup from both directories? Like so:

"C:\Program Files\Microsoft\Visual Studio 8\Common7\IDE\devenv.exe /setup"

"C:\Program Files\Microsoft\Visual Studio 9.0\Common7\IDE\devenv.exe /setup"

Or will running just one be sufficient? If so, which one should I run? (2008 I presume)

muusbolla
  • 637
  • 7
  • 20

2 Answers2

2

Yes, you need to run both. They are two independent environments.

sean e
  • 11,792
  • 3
  • 44
  • 56
1

It depends on which one you are installing to. VSIP packages install into a version of Visual Studio vs. a machine. So you should only have to run devenv /setup on the version of Visual Studio to which your package installs. Running devenv /setup on the version you did not install to will have no effect.

JaredPar
  • 733,204
  • 149
  • 1,241
  • 1,454
  • Good point. Also, if you have written a package for VS2003, then running setup for either 2005 or 2008 will have no effect either ;) – sean e Jun 05 '09 at 16:21