Archive: Banner with CANCEL button


Banner with CANCEL button
There is have one http://nsis.sourceforge.net/archive/...instances=0,32

But this "NxS MSI LoaderDlg" plugin are crashes then it called from Custom Page "Function LeaveCustom" (and MSI Banner too).

I trying contact with saivert (author) with no luck.

Can anybody fix this problem (i'm have poor knowledge of C++)?


May be attached version.. I had not script to test cross-dialog situation.


Those "crashes" are because you need to handle the banners after the page is gone... we can't do everything for you :)


Thanks, Takhir

Those "crashes" are because you need to handle the banners after the page is gone... we can't do everything for you
Before Takhir change the code setup crashes immediately after "NxSMSILoaderDlg::Show /NOUNLOAD ..."

Another problem:
"NxSMSILoaderDlg::update /NOUNLOAD ..." is clear the stack :( I use it in the callback function (of course setup quit from function after it)

New /end parameter - see attached script.
I also increased height of the static control displaying cuurent path (3 lines max now).


WOW, Takhir one more thing. CANCEL button is allways disabled (trying: /can 0 and /can 1).

EDIT:
And /top parameter also use default value


90% of new code :)


Takhir, my russian amazing friend, thank you.

P.S.
Necessarily publish it (you fix all problems and reduced the size of packed plugin by 85 %)


Sources and binaries. Banner path text flicking and foreground window position improved, Task bar button issue fixed, dll and entry points renamed (NxSMSILoaderDlg.dll->nxs.dll, show->Show... - see Readme), file size 5.5 kB now (2.3 kB in zip), 2 samples included - original saivert' and sent by Instructor. "Change history" header added to C file.

Saivert, please don't kill me :)


Originally posted by Takhir
Saivert, please don't kill me :)
that'd be an interesting fight to watch :)

-daz

Then I run example.nsi in WinMe (in WinXP all fine) it shows:


I see, 98/Me not updates frame size on window style changes (related to hidden or visible Task bar button /h option), so banner will have on 98/Me toolwindow style - decreased caption height, regular font in the /h 1 mode (no task bar button), bold otherwise (system defines this). I know about hidden parent window and appwindow style tricks, but I don't like this way. New version attached.


I made some changes in readme and examples. If something will seem to you interesting.


Thanks, Instructor!
I added your files to package, but I had to do some changes in example.nsi - like saivert wrote, first installer's page stays minimized without explicit ShowWindow in the .onGuiInit if banner was shown in .onInit function. The same happened on my XP with "100% done" message box after banner destroyed in .onInit, so I commented this line in your script.


I'm grateful to you (and to saivert :) too).


Hi! This is great work. Takhir and Instructor, thanks for fixing my code (that's why I included the source code). I tried to fix MSIBanner's code, but since I based my code on the MSIBanner project think a lot of the bugs from MSIBanner replicated in my plug-in. I should have started from scratch. But I guess you (Takhir) have reworked the code now, so now most of it is new code (hopefully).

But my idea with a Cancel button was great, right?
And why did you rename the plug-in to nxs.dll. NxS is just my prefix. My real name is Nicolai Syvertsen, so I just made that into NxS (putting in an x just cos' it's cool).
I don't think you make the installer that much smaller by keeping filename sizes short. Isn't the datablock compressed anyway??

But again (sorry for caps lock): GREAT WORK!


Unicode version?
Hi,

The Nxs banner plugin was exactly what I was looking for. It works great.
Do you have a Unicode version, Takhir?

I tried changing the code by following instructions from http://forums.winamp.com/showpost.ph...95&postcount=6 but did not succeed.
The pop up comes but the marquee does not.

Please let me know if somebody has tried the Unicode version.

Thanks!!


Have you tried using it with the CallAnsiPlugin plugin?


Not yet!
Thanks, MSG, for the suggestion.
Looks promising.
I shall try and post the results!


MSG, it worked :-D
That is a great plugin.
Thank you!


Excuse for a time delay, Unicode version uploaded http://nsis.sourceforge.net/File:Nxs.zip


That is great!
I shall check that too.
Thanks, Takhir.


i don't care, but for the record: the marquee banner does not work on windows 98 :)