Uninstall needed a reboot to get rid of service? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

mctozzy
Posts: 81
Joined: Wed Feb 14, 2007 7:37 am

Uninstall needed a reboot to get rid of service?

I'm wondering if anyone can shed any light on this. We did an uninstall of a package that was built with AI, which is a relatively simple kind of msi setup, except that there is a service that was installed as part of the package.

O/S is Windows 2003 Std R2

Before uninstalling, the service was stopped. The uninstall completed successfully, however the service was not quite 'gone'...although the exe was gone, the service appeared as 'disabled', i.e. the registry parameters had not yet been removed. A reboot cleaned things up properly.

This is reminiscent of Windows NT4 when you had to do a reboot after a lot of installs.

What is the explanation as to why it was needed on this occasion? (It doesn't normally happen)
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Re: Uninstall needed a reboot to get rid of service?

Hi,
The uninstall completed successfully, however the service was not quite 'gone'...although the exe was gone, the service appeared as 'disabled', i.e. the registry parameters had not yet been removed. A reboot cleaned things up properly.
This may happen because of handles that are still open to that service. In this situation the service is marked for deletion and will be deleted after a system reboot (when all open handles are closed). You can try to search for open handles to that service by using Process Explorer or other similar tool.

Also make sure the Services.msc is not opened with the service is removed. This can leave an handle to the service opened.

Hope this helps.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
mctozzy
Posts: 81
Joined: Wed Feb 14, 2007 7:37 am

Re: Uninstall needed a reboot to get rid of service?

Thanks Gigi,

Your last explanation is the right one in this case...

Return to “Common Problems”