Custom action is not getting executed in progress dlg next - Advanced Installer Community
fazeelk
Posts: 32
Joined: Wed Sep 10, 2014 5:15 am

Custom action is not getting executed in progress dlg next

Hi
I have chooses the error control option - ignore the error for the services. I have to display the state of services in a dialog after the progress dialog. For that I have created a custom action in vb script that will update the service state in some propertied defined in the Advanced installer and added in the published events of the next button of progress dialog. Unfortunately that script is not getting executed. If i am moving the script to the finish button of the exit dialog its getting executed. Does the custom action not work on the next button of progress dialog? If so please provide me a better approach to meet my above requirement.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Custom action is not getting executed in progress dlg ne

Hi and welcome to Advanced Installer forums.

The "ProgressDlg" dialog is not a modal dialog, so it gets automatically to the next dialog without the "Next" button to be pressed. The best way to have your VBS custom action executed is to add it "with sequence" after the "Install Execution Stage -> Finish Execution" action group, in the Custom Actions page.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fazeelk
Posts: 32
Joined: Wed Sep 10, 2014 5:15 am

Re: Custom action is not getting executed in progress dlg ne

Hi Eusebiu
But through the action script I will update some properties and I have to display the state in a dialog
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Custom action is not getting executed in progress dlg ne

Hi,

I'm afraid that because of the Windows Installer design, the value of a property that was modified during the "Install Execution Stage" section cannot be passed to the "Finish Execution Stage" section. So, if some properties are updated on the "Install Execution Stage" section, you cannot display them on the "ExitDialog" dialog.

In order to achieve what you want, you can add a message box in your VBS custom action that displays the value of those properties or you can use the "Display message box" custom action.

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

Return to “Common Problems”