Link to home
Start Free TrialLog in
Avatar of Sheldon Livingston
Sheldon LivingstonFlag for United States of America

asked on

Create service with NSIS

Trying to create a service from NSIS using:

nsExec::Exec '"cmd.exe SC create ServiceName binpath= c:\Promgram.exe"'

or

nsExec::Exec '"cmd.exe SC create ServiceName binpath= c:\Program.exe"'

Is it possible to create a service with NSIS?
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Hi Sheldon,

Just to be clear, you want to install OR create a Windows Service?

Regards,
Chinmay.
Avatar of Sheldon Livingston

ASKER

I have a program that I wish to create a service from.  I can go into dos and type:

sc create servicename pathToProgram

I want to be able to have NSIS run the "sc create servicename pathToProgram" line.
ASKER CERTIFIED SOLUTION
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you!
You are welcome :)