Is it possible to have a custom action in Wix update text on a dialog? I've been searching various methods of doing this, but nothing has worked for me yet.
I have a PushButton control defined with
<Control Id="RunButton" Type="PushButton" X="0" Y="0" Height="18" Width="56" Text="Run">
<Publish Event="DoAction" Value="CustomAction">1</Publish>
</Control>
and a Text control that has
<Control Id="MessageText" X="0" Y="20" Width="100" Height="18">
<Subscribe Event="ActionData" Attribute="Text" />
</Control>
In my custom action, I have
using(var rec = new Record(0)){
rec.SetString(0, "Starting...");
session.Message(InstallMessage.ActionData, rec);
}
This is the basic process I've found on numerous forums, but it isn't working for me.
The action is defined as Execute="immediate" and Return="Check".
I have also tried changing the "Record" object to be 3 fields, and set the same property to fields 1, 2 and 3. That did not work either.
Could anyone explain what I'm doing wrong? Is this just not doable in Wix? Essentially I am trying to set up a long running process in a custom action and want to be able to report back to the user the progress of the action.