tags:

views:

97

answers:

2

When I'm running (multiple) lengthy custom actions, can I update the GUI's status text with some info on the progress?

+1  A: 

According to Jonathon Rossi's blog post - yes, you can! But you'll need to tweak your WiX UI for that:

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 Foo... (this may take a few minutes).</ProgressText>
</UI>

Hope this helps.

Marc

marc_s
Thanks. That was exactly what I needed.
Magnus Johansson
A: 

It's doesn't work for me for some reason. Any idea why?

Inna
Please post your code and the symptoms of your problem into a new question. This is not the place.
jeffamaphone