Prev Previous Post   Next Post Next
Old 27th January 2016, 15:22   #1
Mircea M
Junior Member
 
Join Date: Aug 2014
Posts: 44
Kill then restart explorer.exe

Hi,

due to a change in the icon of our application in the new version, I need to rebuild the Windows icon cache. Deleting the IconCache.db file works but in order to show the new icon to the user immediately, I need to restart the explorer.exe process. Again, killing it is no problem but when I want to restart it, instead of getting the start menu, desktop, etc. back, I only get a Windows Explorer window.

If I restart the process manually (Task Manager -> File -> new Task -> explorer.exe), the desktop, start menu and new icons are there.

Any idea how to achieve this through the installer?

Here's my code:

code:
Function IconCacheRebuild
ExecWait "taskkill /F /IM explorer.exe"
Delete "$LOCALAPPDATA\IconCache.db"
ExecWait "explorer.exe"
FunctionEnd



Thanks!
Mircea M is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump