hgerstung
12th September 2005 13:38 UTC
Problem with installing a service with nsSCM
Hi!
I try to install a Windows service and want it to use a specific account to run the service.
Unfortunately it is installed using the local system account, no matter what I use as userid/password in the call:
nsSCM::Install "NTP" "Network Time Protocol Daemon" 16 2 \
"$INSTDIR\bin\ntpd.exe $BIGSTEP-c $\"$CONFIG_FILE$\"" "" \
"Tcpip" $SERVICE_UID $SERVICE_PWD
I use a MessageBox to be sure that $SERVICE_UID and $SERVICE_PWD contain the correct values.
Anything I miss here?
Thank you,
Heiko
hgerstung
12th September 2005 14:48 UTC
Talking to myself :)
I looked into the sources of nsSCM and found out that the author did not implement creating a service with a username/password.
I added the parameter handling and things are working fine, now.
If anyone is interested in getting the fixed version, please let me know. Maybe the author? I'll try to contact him/her...
Kind regards,
Heiko
eran.liberty
5th December 2005 09:55 UTC
Originally posted by hgerstung
Talking to myself :)
I looked into the sources of nsSCM and found out that the author did not implement creating a service with a username/password.
I added the parameter handling and things are working fine, now.
If anyone is interested in getting the fixed version, please let me know. Maybe the author? I'll try to contact him/her...
Kind regards,
Heiko
Last post by you was almost a year ago.
did you contact the author?
the code I recently downloaded... is it patched with your correction?
Liberty
hgerstung
5th December 2005 16:34 UTC
Hi there!
Yes, I uploaded a new version of the nsscm and it includes the feature to install a service using a given userid and password.
So, should work now. Any problems?
Kind regards,
Heiko