This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Problem restarting explorer on Windows 64bit
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 03, 2013
09:52 AM
Problem restarting explorer on Windows 64bit
I need to kill and start the explorer so the iconcache.db can be rebuild. This works all correctly on a 32 bit OS. But not on windows 2008 R2 or windows 7 64 bit. The result is explorer starts up but not as shell(taskbar and desktop are missing). Does anybody know why this happens?
Code used:
btw lTaskKillResult gives a result of 0
Code used:
if IconCacheNeedsRebuilding() then
lIconCacheFileName = FOLDER_LOCAL_APPDATA^"\IconCache.db";
lTaskKillResult = LaunchAppAndWait(WINSYSDIR^"taskkill.exe", " /IM explorer.exe /F", LAAW_OPTION_WAIT);
repeat
Delay(1);
lExplorerProcessExists = IsProcessRunning("explorer");
lIterations = lIterations + 1;
until !lExplorerProcessExists || (lIterations < WAIT_FOR_EXPLORE_KILLED_MAX_ITERATIONS);
DeleteFile(lIconCacheFileName);
LaunchApp(WINSYSDIR^"explorer.exe", "");
endif;
btw lTaskKillResult gives a result of 0
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 03, 2013
11:26 AM
InstallShield 32Bit Setup does call 32-Bit apps. They can not see the 64-Bit part of system.
You have to write your own 64-Bit app to kill proccess. You starts it using LaunchAppAndWait.
You have to write your own 64-Bit app to kill proccess. You starts it using LaunchAppAndWait.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 04, 2013
02:05 AM
taskkill in this code kills the explorer process. The problem is that at that point there is no shell and starting up explorer after that does not start the explorer in shell mode. I also tried using a delay of 60 seconds in between killing and restarting the explorer.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 07, 2013
04:26 AM
xsintill,
may have solved your problem with the restart explorer process, after deleting iconcachedb file?
may have solved your problem with the restart explorer process, after deleting iconcachedb file?