Skip to content
⌘ NSIS Forum Archive

Register EXE as Service

3 posts

nsisNewUser#

Register EXE as Service

I'm sorry if someone has already asked this or if it is a simple thing to do, but I have been searching the Forum for awhile and can't find a way to do yet.

How can Register and EXE as a Service? (I think the way I would do this manually is in the command line I would go to the directory where myEXE is and type myEXE -install)

Thank you for your help in advance.
kichik#
According to what you have said your executable is capable of registering itself. To execute with install in the argument list use:

ExecWait '"$INSTDIR\file.exe" install'

This assumes you put it in $INSTDIR. If you want to capture the output use nsExec (Contrib\nsExec).