We help IT Professionals succeed at work.

Create service with NSIS

Sheldon Livingston
on
169 Views
Last Modified: 2019-01-28
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?
Comment
Watch Question

Chinmay PatelChief Technology Ninja
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Hi Sheldon,

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

Regards,
Chinmay.
Sheldon LivingstonConsultant

Author

Commented:
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.
Chief Technology Ninja
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Sheldon LivingstonConsultant

Author

Commented:
Thank you!
Chinmay PatelChief Technology Ninja
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
You are welcome :)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.