thk
Posts: 4
Joined: Mon May 09, 2011 3:39 pm

ActionData and ActionText from DLL-Function

Hi,

I have a "UI Custom Action" that calls a DLL-Function. That function processes and searches some directories and files on the harddisk. The custom action/DLL-function is called as a "DoAction"-event on the "VeryfyReadyDlg" when the "Install" button is pushed. This function takes some time so I'd need a dialog that shows some "Wait while processing..."-message and displays the current directory/file that is currently processed within the DLL-function.
I know how to set a certain property in the DLL-function, but I don't know how to subscribe to that "Property changed"-event that fills a certain text-element on the dialog with this property value the DLL-function changed.
Also, I'd need to know how to close that waiting-dialog automatically when the DLL-function finished.
I call the function as an asynchronous execution (with waiting for the return code) so I can show the waiting-dialog while the function is working.

Can anyone give me some advices how to do that?
Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: ActionData and ActionText from DLL-Function

Hello,

You can try to use a "SpawnWaitDialog" published event, however it has its setbacks. Here is a thread that discusses the matter.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thk
Posts: 4
Joined: Mon May 09, 2011 3:39 pm

Re: ActionData and ActionText from DLL-Function

Ok, thanks for your answer, I found out how to use the wait dialog. It works, except for the part that some label on the dialog shows the currently processed directory.
In my dll-function I set the property "CURR_PATH" which (according to the logging-output) the installer notices, but I don't know how the event subscription for the label on the dialog works so it updates the content of CURR_PATH if the label text is "Current path is [CURR_PATH]".
Is the dll supposed to do something more than just setting the property, like posting a message? I didn't find out yet how that ActionData subscription works at all.
I hope you can help me.

Thanks
-thk
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: ActionData and ActionText from DLL-Function

Hello,

Here is an article that may help you with this.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”