What's the cleanest way to programmatically kill and restart explorer.exe?

Posted by Paul Accisano on Stack Overflow See other posts from Stack Overflow or by Paul Accisano
Published on 2010-05-14T06:35:06Z Indexed on 2010/05/14 6:44 UTC
Read the original article Hit count: 419

Filed under:
|
|
|

Greetings all,

I'm working on a Windows program whose installation necessitates restarting explorer.exe. I know "Reboot your computer to complete the installation" is the standard method here, but I'd like my installer to give users the option of just restarting Explorer so they can start using my program immediately. What's the best way to do that? Of course I could just find and kill the process, but that seems rather icky. Is there some trick to, say, make Explorer think the user is logging off and close cleanly?

Thanks!

© Stack Overflow or respective owner

Related posts about installer

Related posts about Windows