PerfectlyCromulentLtd / PowerBuddy

A Windows tray icon/menu which allows you to switch between ALL your power plans.
52 stars 4 forks source link

PowerBuddy installer should refresh the Windows Icon Cache after installing #6

Open MetaFight opened 7 years ago

MetaFight commented 7 years ago

PowerBuddy recently changed icons. The switch to a new icon was mostly smooth, however a few people have reported windows still using the old icon in some places. This is due to the Windows Icon Cache being stale.

It seems other applications like Wireshark explicitly invalidate or refresh the cache as a final step in their installer. PowerBuddy should do the same thing.

Preliminary research shows %windir%\system32\ie4uinit.exe -clearIconCache will do the trick... unless you're using Windows 10, in which case %windir%\system32\ie4uinit.exe -show must be used.