Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio
All postings are provided AS IS
with no warranties, and confer no rights. Additionally, views expressed
herein are my own and not those of my employer, Microsoft.
I was helping a Microsoft team customize Visual Studio 2005 setup this week. They needed to make some modifications to the VS MSI for some of their development scenarios and in order to do so, they created a transform that needed to be applied during VS setup. As I was helping them, I realized that there is a command line switch for VS setup that is not documented that could be useful to others so I thought I'd write up a quick description here.
Ordinarily, you would be able to install VS by running msiexec /i vs_setup.msi. But, VS setup uses an external UI handler, and we use a strategy similar to what is described here to limit users from running setup without using the UI handler we provide. In order to support passing any arbitrary MSI command line parameters to the VS MSI using the UI handler, we introduced the /msipassthru command line switch. The switch looks like the following:
As an example, if you have a transform you want to apply, the command line would be the following:
There are a couple of important things to note when using this command line switch: