How to show a dialog and to execute a function immediately?
I need to show a custom page to a user and run some function immediately after the page is shown. How can I accomplish this? I use Modern UI.
Archive: How to show a dialog and to execute a function immediately?
How to show a dialog and to execute a function immediately?
I need to show a custom page to a user and run some function immediately after the page is shown. How can I accomplish this? I use Modern UI.
Maybe you should try InstallOptionsEx...
This can be made with ModernUI. Look at the ModernUI doc, the section "Customize Modern UI Functions" => "Pages custom function" describes how to specify a callback function that will be called when a page is created, shown or leaved.
No it cannot be made with Modern UI.
a) The MUI_PAGE_CUSTOMFUNCTION_XXXX functions are for builtin pages, not for custom pages.
b) Even in the built-in pages the MUI_PAGE_CUSTOMFUNCTION_SHOW function is executed between initing the IO dialog and showing it. i.e., the IO dialog is not yet visible when MUI_PAGE_CUSTOMFUNCTION_SHOW is executed.
Essentially what Yurik wants needs multiple threads- one for displaying the IO dialog and one for the ExecWait. This is not supported by NSIS. Maybe it can be done by some creative use of a custom plugin or the System plugin, but it will be quite difficult.
Why don't you just show a banner to the user while the long running process is running? See the Banner plugin.
iceman_k,
yes, it is the solution I finally used in my installer. I've asked related question here - http://forums.winamp.com/showthread....76#post1765776 and seems that banned is the most suitable and simplest thing.
Thank you, this helps.