I want to update the progress text when doing one custom action. I have done the following:
- declare my custom action deferred
use code below reset progress bar
private static void ResetProgress(Session session) { Record record = new Record(4); record[1] = "0"; record[2] = "1000"; record[3] = "0"; record[4] = "0"; session.Message(InstallMessage.Progress, record); }
use the code below to move the progress bar:
private static void NumberOfTicksPerActionData(Session session, int ticks) { Record record = new Record(3); record[1] = "1"; record[2] = ticks.ToString(); record[3] = "1"; session.Message(InstallMessage.Progress, record); }
use the code below to update the progress text:
private static void DisplayActionData(Session session, string message) { Record record = new Record(1); record[1] = message; session.Message(InstallMessage.ActionData, record); }
However, I was unable to update the progress text and move the progress bar.
Can anybody help me? If this custom action needs to handle sequential actions, how do I update the status in the progress bar when this custom action is executed.
I know I can use
<ProgressText Action="UnzipDataBase">Now installing database files, this may take a few minutes!</ProgressText>
to set progress text to let you know what this user action is doing. But how to update the status when performing this custom action?
source share