hard to kill process is complicating upgrades - 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!

timc
Posts: 20
Joined: Wed Apr 30, 2008 12:43 am

hard to kill process is complicating upgrades

Hi,

We package a third-party screen capture client (a single .exe) that has to be running all the time that our application is running. It does this by putting the path to a watcher file in HKLM/Software/Microsoft/Windows/CurrentVersion/Run. The watcher (somehow) ensures that the utility is not killed. It looks like the only way to stop the thing is to delete the registry key, run a third app that kills the screen capture client, then restart the machine.

The application has to be stopped in order to upgrade our software. Is there some way to kill an application of this sort from within the installation and continue with an upgrade? I'd rather not reboot the machine twice, but will take what I can get.

An additional complication is that the utility may not be installed: it's an optional feature in the installer. So I'd like to check if the process is running and the key is present before getting into any of this, and skip it whenever possible.

Thanks,
Tim
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: hard to kill process is complicating upgrades

Hi,

This is what you can do. For detecting a process you can use this How To.

For verifying the key existence you must create a New Search in the Search Page. Right click on it → Add Location → Registry . The search returns the result through its name, which is a property. If it doesn't finds the registry the property will be empty, otherwise will contain the value of the registry.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”