earonesty
Posts: 1
Joined: Thu Nov 08, 2018 6:05 pm

Explorer namespace extension uninstall

When uninstalling a namespace extension, AIP pops up a box:

The following application must be closed:
explorer.exe

The user can then select to kill explorer, or reboot.

Instead of doing that, we'd like AIP to recognize that "explorer.exe killing" isn't something our users will understand, and instead to just mark the file in question to be deleted on next reboot.

I think this is similar to this issue:

viewtopic.php?t=2023

It seems there isn't any *good way* of dealing with namespace extensions for install/uninstall.
Catalin
Posts: 6604
Joined: Wed Jun 13, 2018 7:49 am

Re: Explorer namespace extension uninstall

Hello and welcome to our forums,

Since the shell extension is part of the "File Explorer", it means that the "explorer.exe" should indeed be shut down during the uninstall process. As a workaround for this, you can try the following:

First of all, you should add the files that handle the shell extension as temporary files. After doing so, you can use a custom action to copy those files added as temporary to our APPDIR (the folder where the other files are installed). This way, you will avoid the "File in use ..." message. During the uninstall process, you can create a RunOnce registry key entry that run at next system start-up after machine reboot a small script which will clean up the installation for you.

Please find attached a sample project which does the above said.
sample.zip
(368.29 KiB) Downloaded 170 times
To test this, please proceed as it follows:

- On a virtual machine, build the .AIP file.

- Install it.

- Go to the installation folder.

- Double click on the updater.exe.

- Keep the file opened.

- Uninstall from control panel

- Reboot

Hope this helps.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”