Skip to content
⌘ NSIS Forum Archive

Start service on finish

5 posts

James4563#

Start service on finish

Hey,

Another quick question. Is there a way to start a service after install? My program is installed as a serivce by a java wrapper .bat file. But it doesnt start until I manually start it or reboot the machine.

Is there a way to start it after install?

Thanks,
James
fishweasel#
if you know the service name you can nsexec exec to stack the command :
net start <service name>
or pass the command to Exec '"cmd.exe" net start <service name>'