473,508 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Install a Windows Service programmatically

I dont know if this is the correct newsgroup to post questions on Windows
Service.
I am trying to install and uninstall a Windows Service programmatically.

As far as I know, there isnt a class in .NET FCL which supports doing that.
The ServiceController class starts/stops an installed service but doesnt
install a service. Is there a way to install/uninstall a service
programmatically (not using the Installer) ?

Thanks.

Jul 21 '05 #1
2 2859
Check out this link to another Google post:

http://tinyurl.com/9aqle

Jul 21 '05 #2
Thank you very much.
I was planning on writing the Win32 Interop code... but your post makes it
redundant.

:)

"Chris Dunaway" <du******@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Check out this link to another Google post:

http://tinyurl.com/9aqle

Jul 21 '05 #3

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

Similar topics

0
1268
by: Peter Schmitz | last post by:
Hi, how can I programmatically (NOT by MSI) install a .net service? Thanks a lot Peter
2
3261
by: raghavendra | last post by:
Hi, How to run automatically windows service by using setup deployment insatllation script using visual studio 2003.? What i did is :-- 1. created a windows service & tested the same. 2....
3
7746
by: David Sworder | last post by:
Hi there, I'm designing an application in C#. One of the files in my application is "server.exe". This assembly listens for inbound connections and handles various incoming requests. I want to...
2
7970
by: Fan Wang | last post by:
Hi All, I wrote a windows service with C# as below. But I can't install it with installutil.exe. I got an error message " Exception occurred while initializing the installation:...
2
474
by: Vince Keller | last post by:
I dont know if this is the correct newsgroup to post questions on Windows Service. I am trying to install and uninstall a Windows Service programmatically. As far as I know, there isnt a class...
4
15678
by: juliashah | last post by:
I've developed a windows service that monitors the database and shows icon of a different color depending on the data. To be able to show an icon I have to select the "Allow service to interact...
4
3985
by: UJ | last post by:
How could I have a program uninstall a service and then install a newer version of the same service? This assumes I've already got the files in the appropriate directory to be able to install the...
3
10115
by: Steve | last post by:
Hi All I have a Windows forms POS program and have windows xp printer drivers for the Posiflex printers the customers use Is it possible to automatically install a windows printer driver (and...
2
13318
by: =?Utf-8?B?Um9nZWxpbw==?= | last post by:
I know this has been answered, I just can't find it. can someone point me to a URL or thread that shows how to install a web service in a Windows Setup Project ? I need to install a windows app,...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1558
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.