Stop and start exisiting 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!

aiuser
Posts: 7
Joined: Sat Oct 07, 2006 5:02 pm

Stop and start exisiting service

Hi,

My first time using Advanced Installer so I suspect this is a very basic question. As part of my install process I need to be able to stop a pre-existing service on the destination machine to allow one of my DLLs to be installed which the service will use. No matter how the install ends the service must be restarted if the install program stops it. Once the DLL is in place the service needs to be restarted and some more custom actions run. I presume Im looking at a couple of straight forward custom actions to handle starting and stoping the service? Where should they occur in the install process?

Thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

To do this use a control operation in the "Services" page. Please see:
http://www.advancedinstaller.com/user-g ... rties.html

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
aiuser
Posts: 7
Joined: Sat Oct 07, 2006 5:02 pm

I'm aware there is a dedicated page for sevice control operations.
However, I can't see that these allow me to conditionally stop and restart the service if a particular file needs to be installed or removed?

TIA.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

A file belongs to a component. A control operation have attached an component. If that component is installed the control operation is executed else not. You can condition the installation of a component in the organization page.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”