ViciousXUSMC Posted April 2, 2015 Posted April 2, 2015 So I have this program that when it is uninstalled it leaves behind the entry in Notification Area Icons (Screenshot Attached) How can I go about getting this removed? I can shotgun blast it like this with cmd: taskkill /im explorer.exe /f reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreams /f reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStream /f start "Shell Restarter" /d "%systemroot%" /i /normal explorer.exe But I am looking for a more precise method of finding and eliminating, preferably without killing explorer or rebooting if possible.
Kyan Posted April 2, 2015 Posted April 2, 2015 you need to refresh the explorer's tray cache in order to that list refresh its contents... maybe there's a special hook you can use, IDK Heroes, there is no such thing One day I'll discover what IE.au3 has of special for so many users using it.C'mon there's InetRead and WinHTTP, way better
JohnOne Posted April 2, 2015 Posted April 2, 2015 Also, if it's leaving an icon behind, it's an indication that it's not closing cleanly. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
jguinch Posted April 2, 2015 Posted April 2, 2015 Try with this code : _RefreshTray() Func _RefreshTray() Local $hTray = ControlGetHandle("[CLASS:Shell_TrayWnd]", "", "[CLASS:ToolbarWindow32]") If @error Then Return Local $aOldPos = ControlGetPos("[CLASS:Shell_TrayWnd]", "", $hTray) Local $aPos = $aOldPos While 1 For $x = 0 To $aPos[2] Step 5 DllCall("user32.dll", "int", "SendMessageW", "hwnd", $hTray, "int", 0x200, "int", 0, "int", 0x10000 + $x) ; WM_MOUSEMOVE Next $aPos = ControlGetPos("[CLASS:Shell_TrayWnd]", "", $hTray) If $aPos[2] = $aOldPos[2] Then ExitLoop $aOldPos = $aPos WEnd EndFunc Works for me with Windows 7 x64 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
ViciousXUSMC Posted April 2, 2015 Author Posted April 2, 2015 I'll try that tomarrow when I get back to work thanks jguinch. I was looking at some of the task/tray UDF we had so far nothing has worked but I have confidence that this will If not I'll just tell the application team to use the regdelete and let it go away upon reboot.
ViciousXUSMC Posted April 6, 2015 Author Posted April 6, 2015 Well unfortunatly it did not do as I needed, (updating the list of icons under the Control PanelAll Control Panel ItemsNotification Area Icons area. I'll probably just chalk this one up as not possible.
JohnOne Posted April 6, 2015 Posted April 6, 2015 What is the name of "this program"? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
ViciousXUSMC Posted April 6, 2015 Author Posted April 6, 2015 After it is uninstalled it shows up as PolkDesktopAlert.exe in my Notification Area. It's an internal program written by the app team to push notification messages from our Intranet page to the desktop.
JohnOne Posted April 6, 2015 Posted April 6, 2015 In lieu of a solution, I suggest you get in touch with "the app team" and ask them to fix the application. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now