Back to Blog
Restarting windows explorer7/11/2023 ![]() ![]() I found a solution that worked for me which I will post as the accepted answer. However, I found that when I attempt to reinstall, it displayed the FilesInUse dialog again. Open Command Prompt When the Command Prompt opens, type the bolded taskkill /F /IM explorer. This performed the restart of explorer.exe during uninstall, once the uninstall sequence was completed (although the length of time the explorer was shutdown for was lengthy). I tried setting the following combination of properties as suggested in this post: I have tried various different combinations of properties and attempted to remove/disable the FilesInUse dialog. ![]() My understanding is that's what the restart manager allows, and the WixUtils RestartResource tag should do this for me. ![]() I want the installer to be able to install or uninstall without prompting the user about files in use, and it just auto close and restart Windows Explorer during the process. The WiX fragment that defines the shell extension installation is shown below: I have to manually restart it via task manager. If you select the "Automatically close and attempt to restart" option, it closes Windows Explorer, but it does not restart at the end of the installation. I'm not sure which files that its detecting as "In Use".ĭuring uninstall, the following dialog appears: ![]() If I select "Ignore", the icon shell extension is successfully installed and Window Explorer picks up the change immediately. I've finally figured out how to register it via Wix (I couldn't get the SharpShell registration manager to work whenn called via WiX).ĭuring installation, the following dialog appears: I am trying to write a WiX installer that includes a managed icon shell extension (using SharpShell). ![]()
0 Comments
Read More
Leave a Reply. |