BigManStan
Posts: 20
Joined: Tue Sep 08, 2009 11:00 pm

Closing Windows Explorer

Hi,

I have an installer that needs to close Windows Explorer for a section of the install. On Vista and Windows 7-based systems, the MsiRMFilesInUse dialog takes care of this nicely by allowing the user to close Explorer and keep it closed for the duration of the install.

However, on XP based systems, the MsiRMFilesInUse dialog is not supported. I have tried closing Explorer through the close application and terminate process custom actions; the terminate process action works, but Explorer restarts shortly after.

Is there a way that I can terminate Explorer and keep it closed via custom actions? I am guessing there is a way to do so somehow because Explorer may be closed permanently using the Task Manager and the ctrl+shift+alt + cancel button on the shutdown screen.

Thanks,

Justin
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Closing Windows Explorer

Hi Justin,

I am not sure terminating explorer is a viable approach.
I would suggest you schedule your installer to run right after a reboot, before explorer.exe is even started.

Attached is a sample project that does this.

Of course you will have to adjust it to suit your needs, but I hope it clearly demonstrates the concept.

Let me know if it helped.

Best regards,
Gabriel
Attachments
test.zip
(309.24 KiB) Downloaded 329 times
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”