Jonathon Rossi

My little bit of the internet.

WiX Progress Text for a Custom Action

The MSI installer for Castle Visual Studio Integration runs both VS2005 and VS2008 with the /setup switch to configure the new Visual Studio package. Because this process can take a while, I tried to work out how to display custom status text while the custom action was running, but had no luck in finding any documentation about how to do this until just recently.

If you have a custom action like:

<CustomAction Id="CA_DevEnv2008Setup" Property="DEVENV2008_EXE_PATH" ExeCommand="/setup" Impersonate="no" Execute="deferred" />

Then a ProgressText element like the following will set the status text while it is running:

<UI>
  <ProgressText Action="CA_DevEnv2008Setup">Configuring Visual Studio 2008... (this may take a few minutes</ProgressText>
</UI>

I found the details of how to do this in a forum post on the WiX sourceforge mailing list.