Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In WiX, is it possible to update the status text when executing custom actions?

Tags:

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

like image 714
Magnus Johansson Avatar asked Aug 17 '09 09:08

Magnus Johansson


1 Answers

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> 
like image 192
marc_s Avatar answered Sep 21 '22 17:09

marc_s