How to install Windows Services with Actual Installer

Common questions about using Actual Installer.
Post Reply
softsoap
Posts: 3
Joined: Wed Aug 18, 2010 7:14 pm

How to install Windows Services with Actual Installer

Post by softsoap »

Hi,
this post is to show you how to install a Windows Service during the installation.
let's say the service name is : SyncTime

Open : Actual Installer
Click on : System
Go on the tab : Commands

You will enter 4 new commands.
1: to install the service after Installation
2: to start the service after Installation
3: to stop the service before Uninstallation
4: to delete the service before Uninstallation

Code: Select all

1 ----------------------------------
Command: <SystemDir>\sc.exe
Parameters: create "SyncTime" binPath= "<InstallDir>\SyncTime.exe" DisplayName= "Sync Time" start= auto
Show: Hide
Timing: After Installation
Wait Until Process Finishes : Yes

2 ----------------------------------
Command: <SystemDir>\sc.exe
Parameters: start "SyncTime"
Show: Hide
Timing: After Installation
Wait Until Process Finishes : Yes

3 ----------------------------------
Command: <SystemDir>\sc.exe
Parameters: stop "SyncTime"
Show: Hide
Timing: Before Uninstallation
Wait Until Process Finishes : Yes

4 ----------------------------------
Command: <SystemDir>\sc.exe
Parameters: delete "SyncTime"
Show: Hide
Timing: Before Uninstallation
Wait Until Process Finishes : Yes
I hope this will help somebody.

Regards
Soft
Last edited by softsoap on Thu Aug 19, 2010 9:42 pm, edited 1 time in total.
Leo
Site Admin
Posts: 472
Joined: Fri Jan 22, 2010 12:40 pm

Re: How to install Windows Services with Actual Installer

Post by Leo »

Thank you for that!
Leo,
Actual Installer Team
https://www.actualinstaller.com
softsoap
Posts: 3
Joined: Wed Aug 18, 2010 7:14 pm

Re: How to install Windows Services with Actual Installer

Post by softsoap »

I forgot something.

you should add this one too.

Just to make sure when you update your software you will be able to replace the exe with the new one.

Code: Select all

5 ----------------------------------
Command: <SystemDir>\sc.exe
Parameters: stop "SyncTime"
Show: Hide
Timing: Before Installation
Wait Until Process Finishes : Yes
DaniealD
Posts: 1
Joined: Mon May 09, 2011 10:54 am

Re: How to install Windows Services with Actual Installer

Post by DaniealD »

thanks for your great tips to install.
Post Reply