stevo.zilik
Posts: 42
Joined: Thu Jul 19, 2007 1:39 pm

Progress bar

Hi,

probably frequent type of question. How to work a progressbar?

Basically, I just need to run a custom action (which does not report any progress) and after this action finished, set the progress bar to 100%. Then make Next button enabled.

And if that action fails, somehow read the result (ExitCode) and show user a message that something failed.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
Basically, I just need to run a custom action (which does not report any progress) and after this action finished, set the progress bar to 100%.
There is a similar discussion on the forum, please take a look:
http://www.advancedinstaller.com/forums ... php?t=3968
Then make Next button enabled.
This can be done by setting a property in your custom action. This property will be used as a control event in the "Control Conditions" tab of the "Next" button.
And if that action fails, somehow read the result (ExitCode) and show user a message that something failed.
This can be done from within you custom action. Note that if the exceptions and errors of your custom action are not handled by custom code then Windows Installer will automatically handle them with standard error messages.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stevo.zilik
Posts: 42
Joined: Thu Jul 19, 2007 1:39 pm

You're right, I'll handle it from inside my custom action.

Thank you!

Return to “Common Problems”