Codename K
Posts: 471
Joined: Fri Jan 29, 2010 3:04 pm

Custom Text in Progress Dialog

Fri Apr 22, 2022 12:52 am

Hello,

What are the methods possible to show custom progress messages in the Progress Dialog?

How to show different progress messages between each Custom Action?

Is there a way to have a static text control to update based on a property value during installation process?

:?:
K

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Custom Text in Progress Dialog

Tue Apr 26, 2022 9:45 am

Hello K,

For that, you can try to use our Billboard support.

Please have a look on the above article. Using Bilboards you can display custom texts, images, icons for your custom actions. The bilboards are associated with an install action (standard or custom) and are conditioned by the install state of a feature. Each billboard can have one or more controls associated with it.
bilboards.png
bilboards.png (110.79KiB)Viewed 7056 times

Hope that helps!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Codename K
Posts: 471
Joined: Fri Jan 29, 2010 3:04 pm

Re: Custom Text in Progress Dialog

Mon May 02, 2022 10:40 am

Thanks for the information. However, can you provide more details on how to create and manage Billboards?

Are there more details on how to create Billboards? I mean, it did not show in the progress dialog when it was associated with VBScript.
K

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Custom Text in Progress Dialog

Tue May 03, 2022 11:55 am

Hello K,

All the steps are detailed in our article.
I mean, it did not show in the progress dialog when it was associated with VBScript.
I have tested this with a sample project and I can indeed confirm the behavior.

I have forwarded this to our development team and hopefully this will be fixed in a future version of Advanced Installer. As soon as the fix will be released we will notify you.

I apologize for the inconvenience.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Codename K
Posts: 471
Joined: Fri Jan 29, 2010 3:04 pm

Re: Custom Text in Progress Dialog

Tue May 03, 2022 10:21 pm

I have forwarded this to our development team and hopefully this will be fixed in a future version of Advanced Installer. As soon as the fix will be released we will notify you.
Will this scenario possible?

Add PowerShell script custom actions between VBScripts and use it to make the Billboard show up.

Will this work?
K

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Custom Text in Progress Dialog

Wed May 04, 2022 3:15 pm

Hello K,

Add PowerShell script custom actions between VBScripts and use it to make the Billboard show up.

Will this work?
Unfortunately not, currently it looks like the billboard is not displayed for any custom action, only for standard actions.

We will let you know as soon as we have more information.

Thank you for your patience.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Codename K
Posts: 471
Joined: Fri Jan 29, 2010 3:04 pm

Re: Custom Text in Progress Dialog

Wed May 04, 2022 3:36 pm

Thanks.
K

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Custom Text in Progress Dialog

Wed May 04, 2022 3:38 pm

You're welcome, K!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Codename K
Posts: 471
Joined: Fri Jan 29, 2010 3:04 pm

Re: Custom Text in Progress Dialog

Sun May 22, 2022 12:04 am

Since the billboards have an issue, is there are any other way to change the progress status text?

:?:
K

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Custom Text in Progress Dialog

Mon May 23, 2022 9:12 am

Hello K,

You can try the following methods:

1. You can update the action text and progressbar from a custom action. Please have a look over the "Update action text and progressbar with C#/DTF custom action" where my colleague Bogdan has explained how you can update a progress bar from a C# custom action.

2. By setting the "Action Text" in the Custom Action Properties pane of the custom action. The action text you specify will be displayed in the "Status" section above the progress bar. This works only for Deferred custom actions. It is not supported for Immediate custom actions.

Hope this helps!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Catalin
Posts: 6509
Joined: Wed Jun 13, 2018 7:49 am

Re: Custom Text in Progress Dialog

Fri May 27, 2022 1:57 pm

Hello,

This has been fixed in version 19.5 of Advanced Installer, released on May 23rd, 2022.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Codename K
Posts: 471
Joined: Fri Jan 29, 2010 3:04 pm

Re: Custom Text in Progress Dialog

Mon May 30, 2022 6:07 pm

Hello,

In the Advanced Installer 19.5, I added two custom action VBScript ExecuteScriptCode. These are named ExecuteScriptCode and ExecuteScriptCode_1. I created a billboard and added controls to be shown at ExecuteScriptCode but it seems to be not working. What did I do wrong? Here is that project file:

https://drive.google.com/file/d/1mYTQFx ... sp=sharing
K

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Custom Text in Progress Dialog

Tue May 31, 2022 9:34 am

Hello K,

As I can see, our development team fixed this for PowerShell custom actions (this support is completely implemented by us).

In order for the billboards to be displayed, a progress message needs to be sent at the start of the CAs (Billboard Table).

The VBScript support is not our custom implementation (we use the Microsoft functionality), thus we cannot send the progress message from within the code. To make the VBScript work with Billboards the following code can be entered at the start of the script:

Code: Select all

Dim record
Set record = Session.Installer.CreateRecord(3)
record.IntegerData(1) = 0
record.IntegerData(2) = 0
record.IntegerData(3) = 0
Session.Message &H0A000000, record
and the custom action needs to be scheduled on "deferred" execution time.

Also, in your sample project you added the VBScript in the wrong location. You added the custom action after "Finish Execution" stage. Please note that the Progress Bar (FolderDlg) is already ended when your script runs.

Please find attached a sample project with the above implementation.

Hope this helps!

Best regards,
Liviu
Attachments
demo VBScript Billboard.aip
(14.3KiB)Downloaded 126 times
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Codename K
Posts: 471
Joined: Fri Jan 29, 2010 3:04 pm

Re: Custom Text in Progress Dialog

Wed Jun 01, 2022 11:41 pm

Worked Perfectly. Thank you.
K

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Custom Text in Progress Dialog

Thu Jun 02, 2022 7:05 am

You're welcome, K!

I'm glad it works now!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”