473,320 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to set .Net service dependencies

Hi

I've created a windows service in .Net and want it to be dependant on some
other service. Can someone please tell how to do it programatically instead
of editing the registry. Just like earlier in VC++ there was a parameter
passed to "CreateService" that would specify the service dependencies. I
didnt see any option in .Net service. Please help if there's any solution
other then writing it in registry.

Regards

Usman
May 16 '06 #1
1 5387
Hello, Usman!

U> I've created a windows service in .Net and want it to be dependant on
U> some other service. Can someone please tell how to do it programatically
U> instead of editing the registry. Just like earlier in VC++ there was a
U> parameter passed to "CreateService" that would specify the service
U> dependencies. I didnt see any option in .Net service. Please help if
U> there's any solution other then writing it in registry.

How do you install your service?

If you do this via ServiceInstaller class and InstallUtil, then in the installer class there is property that will help you ( ServicesDependedOn ).

If you install service via ServiceInstall table in the MSI, then you must add values into Dependencies column.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
May 16 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Alan Pretre | last post by:
I have a Windows service that is having trouble starting up at boot time. It requires SQL Server to start up. I have added MSSQLSERVER to the service dependencies (as explained in...
3
by: mailme.faisal | last post by:
I have created a service that create a process. The service is running in local system account & it also create the new process in system account. In process i have to access network resource ....
3
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I...
2
by: John Olbert | last post by:
We have a large application (the Exe is about 10 mb Released) built as a C++ unmanaged Solution under Vs2003. This App is targeted for Win2000. The latest Service Pack for Windows 2000 has...
29
by: Ken Allen | last post by:
I have a number of services developed in C# (.Net), and they have been working fine for the most part. Recently someone reported that ipon occassion (originally rarely, but more frequently on some...
3
by: adasilva | last post by:
I have create a Windows service that uses a timer to access a Web Service. The service is set to start Automatically and its using the local system account. The service also logs events to the...
3
by: Manuel Alves | last post by:
Hi all, I've got a windows service that depends on some other services. On the project installer I state this by using: Me.myService.ServicesDependedOn = New String() {"Print Spooler", "Net...
8
by: DF Dev | last post by:
I have created a Windows Service using Visual Studio .Net 2005 and C# which executes a series of database jobs on a time basis. I am using SqlConnections and SqlCommand objects to connect to a SQL...
3
by: davey23crocket | last post by:
Hi, I am using C# 2.0 and DotNet 2.0. I created a Windows client service with start-up type: Automatic. But upon reboot it won't start. How can I find out what service dependencies I have?...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.