Dart Home | PowerTCP Server for ActiveX | Custom Development | Reply | PowerTCP Server for ActiveX Topics | Forums |
Author | Forum: PowerTCP Server for ActiveX Topic: How to create LocalService and ServiceParameters reg keys when installing servic |
roofrack gary.roussak@tyrrellsystems.com From: Leigh, United Kingdom Posts: 23 Member Since: 06/08/06 |
posted May 19, 2010 7:04 AM Hi, I have an OPC Server (Microsoft OLE process control) which I am converting to run as an NT service by using the Dart Service control. OPC requires DCOM. When I register the OPC Server in DCOMCNFG, I want to be able to select its identity as "The system account" which is the recommended setting when running something as an NT service (to avoid user authentication problems). However, Windows XP will not enable that option until DCOMCNFG knows that my OPC Server really is an NT service. I presumed calling the Install() method of the Service control would do this, but it seems not. Having dug around, I can see that the registry key for my OPC Server is missing specific subkeys that are present in other DCOM objects whose identity is "The system account". These are: LocalService (set to the name of the service, or perhaps its EXE pathname) ServiceParameters (typically set to "-service") My question is: should a call to Service.Install() not create these reg subkeys, or are they meant to be created another way ? Any help with these registry keys greatly appreciated ! Thanks |
K M Drake From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted May 25, 2010 10:56 AM Hi, I'm sorry for my ignorance, but I know little about this. Where would I find the option for "The system account" when I run dcomcnfg? After installing our demo service, I see the options for "Local System account" and for using the current account or browsing for an account (these are both enabled). I assume "Local System account" is different than what you are looking for? I am not sure if Install should add these keys or not. Internally, the control uses the CreateService function: http://msdn.microsoft.com/en-us/library/ms682450%28VS.85%29.aspx Perhaps the parameters used in the call can be changed to accommodate this, but I have not been able to find any information on how. What are you using for the control's "Account" parameter? Thanks, -ken |
Reply | PowerTCP Server for ActiveX Topics | Forums |
This site is powered by PowerTCP WebServer for ActiveX |