dlenis
Posts: 40
Joined: Wed Nov 02, 2016 2:37 pm

Skip progress dialog

Hi,
Is there a way to bypass the progress dialog? I have a custom dialog that creates a new database using a bunch of SQLcmd scripts via a c# custom action. The dialog shows the progress of the script via a progress bar and displays action text base on the output of a redirected console window. The next button will be enable once the scripts are done installing the database. This works as plan but when you click the next button, the progress dialog starts and goes through it process. There is nothing to install so I don’t need to display the progress dialog.

I’ve tried to incorporate the custom action into the progress dialog but I am unable to integrate it into the progress bar. If added to the init event of the progress dialog it will install the database but the cursor will just spin and stay on the previous dialog until it is done.

I’ve also got the custom action to start once the progress dialog is displayed but only the default progress bar activity is displayed (preparing etc) and once done it will move on to the exit dialog even through the c# custom action is still installing the database. Seems that the default progress dialog installation is started before the custom action. Custom action is started by a hidden HTML control calling a hidden button publish event (external.MsiPublishEvents('Button').

Another approach I’ve tried is “Close current dialog” custom action with an argument of exit. This works as it skips the progress dialog but the exit dialog displays that the installation failed. This could work if I can control what the exit dialog displays.

I am aware of Advanced Installers SQL database features but at this point it is not practical for us since it will require modifying many SQLcmd scripts.
Any suggestion are greatly appreciated.

Thank you,

Diego
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: Skip progress dialog

Hi Diego,

To skip the "ProgressDlg" dialog, you can go in the "Custom Actions" page, click on the "Show Standard Action" toolbar button and select the "ExecuteAction" standard action, then set a false condition for it (e.g. 1=2).

Let me know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dlenis
Posts: 40
Joined: Wed Nov 02, 2016 2:37 pm

Re: Skip progress dialog

Thanks so much. That was too simple.

Thank you,

Diego
dlenis
Posts: 40
Joined: Wed Nov 02, 2016 2:37 pm

Re: Skip progress dialog

Hi,
I have an issue related to skipping the progress dialog. The temporary files now remain behind. I can always create a custom action to remove them but like to know if it can be done another way. I see the AI_RemoveTempFiles. custom is called when progress dialog runs or when you click on the finish button out of the user exit dialog, is there a way to call this built in custom action?

Thank you,

Diego
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: Skip progress dialog

Hi Diego,

Indeed, the custom action that removes the temporary files is executed during the "ProgressDlg" dialog. You can try to call it from a VBS custom action as follows: Session.DoAction("AI_RemoveTempFiles"). If it does not work, you may need to create your own custom action to remove the temporary files.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dlenis
Posts: 40
Joined: Wed Nov 02, 2016 2:37 pm

Re: Skip progress dialog

Eusebiu,
I am able to run the AI_RemoveTempFiles through a custom action. I’ve added the custom action to the exit dialog finish button. The issue is that if the user exits out of the dialog by closing the dialog window the custom action will not run. The exit dialog does not have an init event so can’t add it there .

The work around I am using is having a hidden html control that calls the custom action through a hidden button publish event on the exit dialog. It works but seems overly complicated. Is there another way to accomplish this?

Thank you,

Diego
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: Skip progress dialog

Hi Diego,

You can try to call the "AI_RemoveTempFiles" custom action in sequence, right after the temporary files are not needed anymore.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dlenis
Posts: 40
Joined: Wed Nov 02, 2016 2:37 pm

Re: Skip progress dialog

Eusebiu,
Hah, that worked in the wizard dialog stage. I did tried that in sequence in the install execution stage but since the execute action is set to false it would not fire.

Going back to skipping the progress dialog, the dialog is being skipped but sometimes it is displayed for a brief second. Is that normal behavior?

Thank you,

Diego
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: Skip progress dialog

Hi Diego,

I'm glad you got this working.

If you want the "ProgressDlg" not to be displayed at all, you can set a false condition for it too, just as you did for the "ExecuteAction" standard action.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dlenis
Posts: 40
Joined: Wed Nov 02, 2016 2:37 pm

Re: Skip progress dialog

Eusebiu,

Thanks, that worked. Hopefully last and final question regarding this topic. Can the exit dialog be skip? No big deal if it can't.

Thank you,

Diego
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: Skip progress dialog

Hi Diego,

For the "ExitDialog" not to be displayed, you need to set a false condition for its related entry from the "Table Editor" page, "InstallUISequence" table.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”