nsisNewUser
3rd January 2003 17:58 UTC
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
3rd January 2003 18:07 UTC
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).
nsisNewUser
3rd January 2003 18:21 UTC
thank you so much for your fast reply. I'll try that as soon as I get the exe.