Avatar of Sheldon Livingston
Sheldon Livingston
Flag 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"'


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

Is it possible to create a service with NSIS?
Programming* NSIS

Avatar of undefined
Last Comment
Chinmay Patel

8/22/2022 - Mon
Chinmay Patel

Hi Sheldon,

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

Sheldon Livingston

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.
Chinmay Patel

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Sheldon Livingston

Thank you!
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Chinmay Patel

You are welcome :)