Skip to content
⌘ NSIS Forum Archive

Improving DLL calls - devs, help!!!!

8 posts

Joel#

Improving DLL calls - devs, help!!!!

Hi people 🙂

I'm making a new plugin and the dialog that I'm display works great...

But seems that NSIS is paused at the moment of the calling...

After, the dialog (created by the plugin) is close, NSIS returns its process...

How can I display my dialog and let NSIS to continue its process?

Thanks
Takhir#
This may happen only if you use modal dialog.

Modeless dialog box creation:
CreateDialog | CreateDialogParam |CreateDialogIndirect
Then ShowWindow(), finally DestroyWindow()

Or show your code 🙂
Joel#
Keeps crashing in the last second before closes NSIS 🙁
Takhir#edited
this is a banner.. Do you use /NOUNLOAD in plug-in call?

Edit:
And something is wrong with parent window handle, might be better to use NULL as parent in CreateWindow. Parent handle may be not valid after some time.
Takhir#
I don't know what finally you want to have, but I tested this simple script for modeless banner window with sound - looks OK even on Win98SE 🙂
Joel#
w00t!

I done it 😁

It was DestroyWindow....

The plugin is about to create the standard MSI (Windows Installer) startup banner....

I'll make the last tests and I'll put it in my site to be downloadable.