kjquast
Posts: 2
Joined: Mon Aug 27, 2018 3:29 pm

Copying Dialog Progress Bar

Hi, I'm using AdvInst 15.2, and created a Webinstaller (downloadable small exe) which has to transfer a big amount of data ~ 5GB from the website. The installation will take ~ 25 minutes.

Running the downlaoded setup.exe after a while the progress bar of the copying dialog ends up to 100% , but in fact the installer is still gathering the CAB arcives (3 archives in total) from the website. This is very confusing for the user as there is no more feedback showing that the installer is still working (frozen). In the end the installer terminates correctly.

How to show that the installer is still active? Would be best if the progress bar would just start at zero again after reaching the (estimated) 100%.

Best Klaus
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Copying Dialog Progress Bar

Hello Klaus and welcome to our forums,

Indeed this progress behavior is a consequence of the default progress control of the Windows Installer. As a workaround solution you could proceed like this:

1. go to "Dialogs" page and select the "ProgressDlg" dialog
2. select the progress bar control and go to the "Subscribed Events" list
3. delete the current event and add another one like this:
  • Subscribe to: Display overall installation progress (Enhanced User Interface only)
    Attribute to set: Progress
4. save and rebuild the setup project and see if there are any improvements

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kjquast
Posts: 2
Joined: Mon Aug 27, 2018 3:29 pm

Re: Copying Dialog Progress Bar

Hi Daniel,
thank you for your answere. I edited the dialog as you advised, but the problem remains. It seems that all works well as long the the first cab-file is processed, but while processing subsequent cab-files the bar shows 100% for a long time.

I suspect that a good estimation of download time for all cab files is difficult anyway.

Is there a way to replace the progress bar by an UI element which just indicates copy activity but no progress?

Best Klaus
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Copying Dialog Progress Bar

Hello Kalus,

As another workaround approach you could use the implementation exposed in our "List main actions performed during installation into a user friendly log-like fashion" article.

To hide the progress bar control you could just set its "Visible" attribute to "False".

Hope this helps.

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

Return to “Building Installers”