what happens with service during repair - 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!

elanius
Posts: 38
Joined: Fri May 15, 2009 9:49 am

what happens with service during repair

Hello

What happens with service during repair? Because I have one service which is running during whole repair process and it holds some file which can not be deleted and therefore repair fails.
I would expect that services are stopped during repair and at the end stated again but obviously it is not like this. Is there any way to stop service during repair?

Also if someone know about good detailed documentation about repair process I would be very interested about it.

thanks.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: what happens with service during repair

Hi,
Is there any way to stop service during repair?
For this you can try using our Launch File or Open URL custom action to launch a bat file that would
call the following Windows tool for managing services.

The custom action condition should be the following in order to run only during repair:

Code: Select all

Installed AND (NOT REMOVE="ALL")
Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
elanius
Posts: 38
Joined: Fri May 15, 2009 9:49 am

Re: what happens with service during repair

Hi

It is strange for me because MSI provide way for starting, stopping, deleting service during install or uninstall. But during repair I have to do it by myself. From custom action.
And there is another thing that I can see from log file that installer is calling operations for StopService or DeleteleService but nothing happen with my service. I know it because I see it in process explorer that PID wasn't changed.

It seems that no one knows how repair really works.

thanks.

Return to “Common Problems”