WiX: dynamically changing status text during CustomAction

I have a rather long CustomAction in the wix installer, and I want to be able to change the text "Status: ..." during the operation to see that there is progress and an update of its internal state. I know how to set the progresstext of a custom action, but I want to dynamically change the progress text during the execution of the custom action.

+8
source share
4 answers

Deferred user actions can call the MsiProcessMessage function. You can then use INSTALLMESSAGE_ACTIONSTART, INSTALLMESSAGE_ACTIONDATA and INSTALLMESSAGE_PROGRESS to post messages to the user interface.

, ProgressText ( ActionText) . ( .)

, , .

MsiProcessMessage

#/DTF :

    using (Record record = new Record(0))
    {
        record.SetString(0, "foo");
        session.Message(InstallMessage.ActionData, record);
    }

using MSI. , , , ActionText.

+11

, ActionData , InstallShield, , SetupProgress ActionData . ActionText , CA, ActionText.

+1

vbScript, ? , , , 1. Postgres 2. 3. .. ..

Custom Action

0

. .

AddProgressInfo .

      Action<Session, string> updateStatusMessage = (session, msg) =>
      {
            session.Message(InstallMessage.ActionStart, new Record("callAddProgressInfo", msg, ""));
      };
0
source

All Articles