|
|
#81 |
|
Senior Member
|
bright idea Kichik
I'll check and update a bit later... |
|
|
|
|
|
#82 |
|
Senior Member
|
Fixed. Now uses 16x16 as default icon size. The previous behaviour could be selected by '.' flag before f, s, or i.
|
|
|
|
|
|
#83 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Uploaded.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#84 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
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 |
|
|
|
|
|
#85 |
|
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
would it be possible to add a flag, that minimizes the installer to the tray when one clicks on the minimize icon?
|
|
|
|
|
|
#86 |
|
Member
|
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.
|
|
|
|
|
|
#87 | |
|
Junior Member
Join Date: Jun 2005
Posts: 21
|
Quote:
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. |
|
|
|
|
|
|
#88 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
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 |
|
|
|
|
|
#89 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
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 |
|
|
|
|
|
#90 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
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 |
|
|
|
|
|
#91 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
Instead of using X:\t could I use \t ?
|
|
|
|
|
|
#92 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Just extract the icon to $PLUGINSDIR and give it that path.
-Stu |
|
|
|
|
|
#93 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
Still doesn't work
I have extracted to C:\icon.ico but still doesn't work Using NotifyIcon::Icon /NOUNLOAD "fpb" "C:\icon.ico" "START" "Balloon!" "Cool!" |
|
|
|
|
|
#94 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
Oops
Working now Forgot to add y
|
|
|
|
|
|
#95 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
When you use this in conjuction with wansis, the skin window stays up.
Is there a way to fix this??? |
|
|
|
|
|
#96 | |
|
Junior Member
Join Date: Jan 2006
Posts: 4
|
Quote:
|
|
|
|
|
|
|
#97 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
Hi Steve
But can anyone answer my q? |
|
|
|
|
|
#98 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
Maybe call a custom function on minimize and maximize
|
|
|
|
|
|
#99 |
|
Junior Member
Join Date: Jun 2005
Posts: 21
|
My program notfies the user if something happens and displays it in a balloon (yeah,.. really! :P)
But I want that if the user click on the balloon a certain action is performed, how do I do that? |
|
|
|
|
|
#100 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
There isn't a way I'm afraid.
-Stu |
|
|
|
|
|
#101 |
|
Member
Join Date: Jan 2006
Location: Canberra, Australia
Posts: 76
|
So I wonder how that (annoying) "Take the Windows Tour" balloon and the "Windows Update" ballon do it then, they launch Wizards/applications when you click on them...
I think this is the functionality that is sought. I might take a look, it would be interesting to know its done. Duncan |
|
|
|
|
|
#102 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
There is no way via a run-time plugin to call an internal NSIS function from some event. For this to be possible we'd need modifications to the original NSIS source code, or perhaps when compiler plugin support is added this will be possible. I doubt it will get implemented because this would add to installer overhead no doubt.
-Stu |
|
|
|
|
|
#103 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Actually, you can already call NSIS functions from plug-ins. ExecuteCodeSegment is exported to plug-ins through the extra_parameters structure passed on as the fifth function argument. However, the scripting engine is not multi-threaded, so it's up to the plug-in to synchronize it.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#104 |
|
Member
Join Date: Aug 2005
Location: Australia
Posts: 71
|
Anyway, how would I get it to shrink the wansis window? I'm using FindWindow, ShowWindow in a custom function.
|
|
|
|
|
|
#105 |
|
Senior Member
Join Date: Aug 2005
Posts: 121
|
I need some help here... the plugin doesn't allow me to HideWindow and I can't get "p" nor "!p" params to work with the NotifyIcon.nsi that comes in zip file (v0.2).
|
|
|
|
|
|
#106 |
|
Member
Join Date: Mar 2008
Posts: 73
|
I need to show the system tray icon during an upgrade process. The upgrade will be triggered using the silent switch to make it silent.
Is this feasible using the NotifyIcon plugin ? If not what are my options. |
|
|
|
|
|
#107 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
It's been a while since I looked at the code but it probably doesn't show any notification icon if the installer is silent. If that is the case you would need to modify the plugin to allow a force show option or something that overrides this behaviour. If you don't use the plugin you'll be using System with a lot of SendMessage lines (which the Win32 macros use internally) so it'd be pretty painful.
Stu |
|
|
|
|
|
#108 |
|
Member
Join Date: Mar 2008
Posts: 73
|
Yes it is a nice switch to have because on silent , this can be a kind of notification to the user .
I'm surely in dire need of this. |
|
|
|
|
|
#109 |
|
Junior Member
Join Date: Aug 2014
Posts: 1
|
Unicode
Is there anyway to get this plugin to work with the Nsis Unicode version?
|
|
|
|
|
|
#110 |
|
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 916
|
I've had a quick look, it looks easy enough but I can't promise anything.
"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
|
|
|
|
|
#111 |
|
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 916
|
So I've uploaded a new version to the wiki: http://nsis.sourceforge.net/NotifyIcon_plug-in.
It has both ansi and unicode versions included, plus tweaks to the code so that it runs on x64 (yes, I did test the x64 build ).Enjoy .
"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
|
|
|
|
|
#112 |
|
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 916
|
So I've made another update, details:
v0.4, Removed msvcr*.dll dependency, extra tweaks to unloading code. Available at: http://nsis.sourceforge.net/NotifyIcon_plug-in. "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
|
|
|
|
|
#113 |
|
Junior Member
Join Date: Oct 2012
Posts: 36
|
There is an issue with the plugin when the installer is launched with a different SW_ value, for example, when I launch the installer with SW_SHOWMINNOACTIVE and call NotifyIcon::Icon during onGUIInit or first page show the installer does not start minimized but instead starts visible.
This is because NotifyIcon calls ShowWindow, which discards the startup SW_ value. As far as I can tell, NotifyIcon needs to call ShowWindow to affect the taskbar icon. However, NSIS doesn't call ShowWindow until after onGUIInit, so startup value is not processed until then. My C++ knowledge is limited, so I don't know whether or not there is a way to postpone calling ShowWindow, or if this is a feature that NSIS must provide. EDIT: I think this maybe solely an NSIS limitation. See https://sourceforge.net/p/nsis/bugs/1163/ Last edited by Marshallx7; 21st November 2016 at 14:52. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|