Old 14th October 2004, 14:25   #1
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Unhappy 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


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 14th October 2004, 16:01   #2
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
This may happen only if you use modal dialog.

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

Or show your code
Takhir is offline   Reply With Quote
Old 14th October 2004, 19:23   #3
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
I'm using CreateWindow....
but I'll try the Modeless thing


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 14th October 2004, 21:49   #4
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Keeps crashing in the last second before closes NSIS
Attached Files
File Type: zip main.zip (961 Bytes, 102 views)


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 15th October 2004, 07:35   #5
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
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.

Last edited by Takhir; 15th October 2004 at 08:08.
Takhir is offline   Reply With Quote
Old 15th October 2004, 13:58   #6
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
More or less, is a banner... I'll try NULL in hwnd of CreateWindow.


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 16th October 2004, 15:59   #7
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
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
Attached Files
File Type: nsi modelessbanner.nsi (2.0 KB, 110 views)
Takhir is offline   Reply With Quote
Old 17th October 2004, 18:11   #8
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
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.


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump