We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

scottboyte
Posts: 4
Joined: Wed Jan 13, 2016 6:28 pm

How do you report progress to progress bar from custom action?

What I am trying to accomplish is to kick off a WIX custom action automatically when a dialog loads and then report progress to the progress bar. How can I do this?

Thanks

Scott
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How do you report progress to progress bar from custom action?

Hi Scot,

Please take a look on the Update action text and progressbar with C#/DTF custom action forum thread that debates this subject. Also, you will find a sample project implementing your scenario.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
scottboyte
Posts: 4
Joined: Wed Jan 13, 2016 6:28 pm

Re: How do you report progress to progress bar from custom action?

Thanks. I got the status message and the progress bar working now by handling that in my dll. How can I fire this custom action off automatically when the dialog loads?

Thanks again!

Scott
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How do you report progress to progress bar from custom action?

Hello Scott,

If you want to launch a custom action when a dialog load, then you should call it using an "Execute custom action" init event.

Just go to "Custom Actions" page and add your custom action as a custom action without sequence (it will be called within the installation dialogs). Then go to "Dialogs" page, select your dialog and in its "Init Events" tab add an "Execute custom action" event which will call your custom action without sequence.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”