It's probably because the window is already destroyed. The plug-in should check to see if the window is destroyed and self-desrtuct if that's the case. For now remove it in the last section.
Tray icon
113 posts
What about when the user clicks cancel; use it in the custom page function if IO pops cancel?
-Stu
-Stu
Huh, I will discuss with Kichik what to do... Problem found.
There is also a problem that the installer doesn't close automatically, so the tray icon will get distroyed before the install has properly finished.
-Stu
-Stu
Well, the good news is that it doesn't crash when called inside the custom page after the user clicks cancel.
Now, I'll wait for the self-distruct sequence 🙂
-Stu
Now, I'll wait for the self-distruct sequence 🙂
-Stu
Afrow, could you please test BrowseForFolder and BrowseForFolderNew rountines separately (be sure to update the system and exehead to latest cvs versioun).
p.s. updated NotifyIcon.
p.s. updated NotifyIcon.
Afrow UK: a small tip: you could skip constant parameters, for example if you use the same icon every time you could skip "i" "103". The same goes for tip at your dday.
Also, IMHO: poping up a info balloon message for every file you are downloading could be a little disturbing for user, may be you should move that info to tip, and popup only on "completed" or "failed" messages?
Also, IMHO: poping up a info balloon message for every file you are downloading could be a little disturbing for user, may be you should move that info to tip, and popup only on "completed" or "failed" messages?
Thanks for the tips.
They are good ideas!
-Stu
They are good ideas!
-Stu
Well, it seems that the problem is fixed.
I am now calling the plugin to remove the notifyicon from .onGUIEnd only, and it works fine, without a crash.
Many D-Dayers are looking forward to the new installer.
Thanks for writing this excellent plugin!
-Stu
I am now calling the plugin to remove the notifyicon from .onGUIEnd only, and it works fine, without a crash.
Many D-Dayers are looking forward to the new installer.
Thanks for writing this excellent plugin!
-Stu
Mind writing an archive page for it Afrow? I'll upload the zip to the archive.
[edit] uploaded to http://nsis.sourceforge.net/archive/...NotifyIcon.zip [/edit]
[edit] uploaded to http://nsis.sourceforge.net/archive/...NotifyIcon.zip [/edit]
it appears, that the systray icon does not get displayed properly.
my icon file consists of various sizes (including 16x16 pixels). the script uses the icon from the executable (103). the icon in the systray looks like a badly downsampled version of a larger icon. why doesn't it simply display the included 16x16 icon?
my icon file consists of various sizes (including 16x16 pixels). the script uses the icon from the executable (103). the icon in the systray looks like a badly downsampled version of a larger icon. why doesn't it simply display the included 16x16 icon?
having opened the .exe in a resource editor, i figured 103 is the id of the icon. now is there a way to further specify the icon size to use for the systray?
Originally posted by n0On3Find out here.
why is the traybar called 'taskbar notification area'? Regular taskbar also notifies that some program is running.
Show me the light! 🙂
mmm.... those reasons didn't convince me.
I suspect this is another lost war.
He can join Richard Stallman who fights to make people call open-source "free software" and Linux "GNU/Linux".
Thanks for the link, interesting read.
I suspect this is another lost war.
He can join Richard Stallman who fights to make people call open-source "free software" and Linux "GNU/Linux".
Thanks for the link, interesting read.
That's one of Windows 95 developers, you won't find a better answer 😉
killahbite: 103 is the number of icon group. and i know no particular way to specify which icon from group to use (the approriate icon should be selected by windows).
the current version downsizes the 32x32 icon to 16x16. it should load the default 16x16 icon instead!
killahbite 🙂 sorry, i couldn't help you. Create additional icon group from one 16x16 icon (it shouldn't take much space) and use it as NotifyIcon icon.
Specifying 16x16 in the desired size should do it. According to Wine source code, LoadImage searches for the best match.
bright idea Kichik 🙂
I'll check and update a bit later...
I'll check and update a bit later...
Fixed. Now uses 16x16 as default icon size. The previous behaviour could be selected by '.' flag before f, s, or i.
Uploaded.
My icon file has a 16x16 icon in it too, but it shows up correctly on the older dll.
Maybe it's the program you used to create the icon.
Also, I'm sure the order of the icons inside the file can affect which icon(s) is used.
-Stu
Maybe it's the program you used to create the icon.
Also, I'm sure the order of the icons inside the file can affect which icon(s) is used.
-Stu
would it be possible to add a flag, that minimizes the installer to the tray when one clicks on the minimize icon?
Would it be possible to add a feature that when you click on the balloon it calls a function? I have a balloon tip appear when an app. is run silently, and I would like that when you click on the tip it shows a message box asking the user if they would like to restart.
Originally posted by flyakiteI would love so such an option.
Would it be possible to add a feature that when you click on the balloon it calls a function?
I think I found a bug:
When I run NotifyIcon::Icon /NOUNLOAD in the .onInit or with SilentInstall enabled, at the moment the mouse goes over the trayicon, it simply disappears.
I think it's already mentioned in this topic (or in the readme I can't remember) but you can't call the plugin in .onInit because at that point the GUI has not been initialised yet. Notification icons are tied with a Windows GUI and therefore you should call the plugin while the window is in memory - in .onGUIInit. Also, to remove it call in .onGUIEnd.
-Stu
-Stu
Where does it access the icon from?
With the default it works but not with my custom one
Does the icon need to be extracted with File
With the default it works but not with my custom one
Does the icon need to be extracted with File
If you don't specify the default icon (105) you specify a full path to an icon file which logically you'd need to extract 🙂.
-Stu
-Stu