Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - VBscript to add program to notification area?

 
05-10-2011   #1


Windows 7 64 Enterprise
 
 

VBscript to add program to notification area?

I'm creating an image which must build in an unattended fashion. The client (the end user of the resulting image) wants to have the icon for one of the included programs included in the notification area. While this CAN be done manually, because of the required build process, I do not have the option of manually adding the program to the notification area; I will need to automate this via a script or other method.

I've found VB scripts for adding ("pinning") programs to the Start Menu and Taskbar, but not for the Notification Area.

EDIT: To clarify further, I want to change the Behavior for this program from "Only show notifications" to "Show icon and notifications", but do so from a command line or script.

Can anyone point me in the right direction to getting this automated?

TIA!

My System SpecsSystem Spec
05-10-2011   #2


Windows 7 x86 since December 2008
 
 


That is a very challenging task.

Those things are kept decoded and in binary format.
HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify
"PastIconsStream" = stores the icons data
"IconStreams" = stores the program path, caption and tip

So, technically, if they are coded the same way across all computers, and you would know how your program adds and codes itself there, during installation you could dump both values from user's computer, then add your data and write new complex strings (old+yours) back in the registry.


Or you could try something like Autoit script to do it semi-manually (but user will see what is going on).

Or you could force them all to Show icon and notification (Option two here), but that would not be fair to the end user.


I do not see an easy elegant solution here.
My System SpecsSystem Spec
Reply

 VBscript to add program to notification area? problems?



Thread Tools



Similar Threads for: VBscript to add program to notification area?
Thread Forum
Notification Area Customization
Notification area Performance & Maintenance
Notification Area General Discussion
Uninstalled Program Remains on Notification Area List General Discussion
Notification Area General Discussion


All times are GMT -5. The time now is 06:25 AM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30