Archive: Short cut in Notification area


Short cut in Notification area
Hello friends,

I am creating a set up installer by using NSIS. I am able to set up short cut in start menu desktop, quick lunch etc...But i would like to place a short cut in notification area too...Any idea

Regards
Rohi


That does not make any sense. Those icons are not shortcuts, they are programs. You will have to write a program, look up Shell_NotifyIcon on msdn, or if you really want to write it in nsis, use http://nsis.sourceforge.net/NotifyIcon_plug-in


No i mean if i open any program, say Like outlook, then outlook or skype icon will be there in notification area.. That what i mean


those programs put their icons there using the Shell_NotifyIcon function


I didnt get u..Can u please make clear...sorry for that


The options i can see there in NotifyIcon_plug-in are

a - add icon*
m - modify icon
r - remove icon


The following 4 flags could be inverted with '!' char before them (to reset them to the default state). In this case ('!p') the p flag requires no argument.

x - show taskbar item in minimized(by default no)
y - show NotifyIcon in normal state (by default no)
z - hide NotifyIcon in minimized state (by default no)

So i can use any of these to place a tray icon while my application minimized without a bubble dialogue..Is it possible???


the notifyicon is -only- for use during installation, to let users check on installation progress while the installer is minimized / not in view / etc., for example

If you want a tray icon for your own application (not the installer), you need to delve into MSDN and look up the methods to creating, maintaining, and destroying tray icons yourself - NSIS plays no part in this.


But clearly, you _can_ use NSIS to write simple applications. But to create a useful tray application, you would need to use both the system plugin and my subclass plugin and I think that might be a little too hard for you. Besides, you don't want to fill the users tray with useless crap, you need an application that actually does something useful. And if you had an application that was useful, it would already be able to do this and you would not be asking about it in a forum about installers


Are you sure you don't mean the quick launch bar? Use $QUICKLAUNCH for that.