Jimmy
Posts: 36
Joined: Thu Apr 12, 2012 1:13 pm

is there a way to ignore certain processes before uninstall

Hi all

Following situation:
We have an installer, which installs a own developed service.
This service instantiate two child processes, one is hosted by the service process, one is a watchdog and runs independant.
If the service ist being stopped, the two processes will be ended as well.

Unfortunately, since our software has those two "sub-processes", Installer tells about running processes which are causing a reboot, if upgrade is done this way (I assume, Installer does not know about the fact, theses processes are ended while shutting down the service)

Is there a way to tell Installer to ignore specific processes in PreUpgrade check phase?

Thanks in advance and regards
Jimmy
Last edited by Jimmy on Thu Jun 27, 2013 12:42 pm, edited 1 time in total.
Jimmy
Posts: 36
Joined: Thu Apr 12, 2012 1:13 pm

Re: is there a way to ignore certain processes before uninst

for clarification, a small Printscreen:
Printscreen of the message, which is fired during upgrade with the child processes started.
Printscreen of the message, which is fired during upgrade with the child processes started.
RunningProcessesAvoidUpdating.png (24.71 KiB) Viewed 8098 times
A reboot is not needed afterwards, since the processes are gone, if the service was successfully stopped.

Log Entry:

Code: Select all

MSI (s) (40:9C) [10:18:55:655]: RESTART MANAGER: Did detect that a critical application holds file[s] in use, so a reboot will be necessary.
Jimmy
Posts: 36
Joined: Thu Apr 12, 2012 1:13 pm

Re: is there a way to ignore certain processes before uninst

Hi again

After doing some research, I found this, and using MSIRESTARTMANAGERCONTROL=Disable, the check seems to be suppressed.

Anyway; for the moment, that could be ok, but I wonder, if there's a more elegant way to come around this "feature".

Regards
Jimmy
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: is there a way to ignore certain processes before uninst

Hello Jimmy,

In order to avoid the related Windows Installer warning you can also close the related proces using our "Terminate process" custom action. Please take a look on our "How do I detect or stop a process?" article which could be useful for you.

Let us know if you have any questions.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jimmy
Posts: 36
Joined: Thu Apr 12, 2012 1:13 pm

Re: is there a way to ignore certain processes before uninst

Hello Daniel

Thank you very much for your highly appreciated suggestion!
I stumbled over this earlier, but disregarded it. Just due to my thougths, that it does not make any sense, to terminate a process, just in the beginning of saying "hello".
What if the setup was intiated by error, and the user decides to cancel? (I assume, the process remains killed? or is it transferred to Restart Manager, which restarts it?)

Regards
Jimmy
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: is there a way to ignore certain processes before uninst

Hello Jimmy,

In order to avoid this scenario you should add the "Terminate process" custom action only before "Install Execution Stage -> Searches" action group.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”