473,574 Members | 2,921 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Install/Start/Stop/Remove services

I am wondering if there is a class that can be used to install/remove
services? I know that there is one for starting/stopping/etc. but not sure
about actually install/remove. What I have is a C# service (created via
VStudio) that I want to control (fully) from another standalone application.
The user will be allowed to add/remove/start/stop my service via menu's.

Any samples would be great or just a suggestion on where to look in MSDN
would be great (class name, etc.)?

Thanks!

--
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Charles Cox
VC/VB/C# Developer
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Jan 30 '06 #1
2 8188
This article illustrates the use of both Craig Andera's "self installing
service" code as well as Neil Baliga's recovery and autostart classes, all in
one code example.

http://www.eggheadcafe.com/articles/20060104.asp

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"C.C. (aka Me)" wrote:
I am wondering if there is a class that can be used to install/remove
services? I know that there is one for starting/stopping/etc. but not sure
about actually install/remove. What I have is a C# service (created via
VStudio) that I want to control (fully) from another standalone application.
The user will be allowed to add/remove/start/stop my service via menu's.

Any samples would be great or just a suggestion on where to look in MSDN
would be great (class name, etc.)?

Thanks!

--
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Charles Cox
VC/VB/C# Developer
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~

Jan 30 '06 #2
Perfect!! Thanks for the suggestion.

I found Craig Andera's info as well.. From what it sounds this is all that
is needed?

http://pluralsight.com/wiki/default....ngService.html

Thanks again!

--
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Charles Cox
VC/VB/C# Developer
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~

"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com > wrote in message
news:B8******** *************** ***********@mic rosoft.com...
This article illustrates the use of both Craig Andera's "self installing
service" code as well as Neil Baliga's recovery and autostart classes, all
in
one code example.

http://www.eggheadcafe.com/articles/20060104.asp

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"C.C. (aka Me)" wrote:
I am wondering if there is a class that can be used to install/remove
services? I know that there is one for starting/stopping/etc. but not
sure
about actually install/remove. What I have is a C# service (created via
VStudio) that I want to control (fully) from another standalone
application.
The user will be allowed to add/remove/start/stop my service via menu's.

Any samples would be great or just a suggestion on where to look in MSDN
would be great (class name, etc.)?

Thanks!

--
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Charles Cox
VC/VB/C# Developer
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~

Jan 31 '06 #3

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

Similar topics

1
2129
by: Nathan Henderson | last post by:
I am trying to stop and start the ftp service from an asp page using the iuser account. my code is simple: shell.run "net start msftpsvc",0,true. ASP page returns no errors but nothing happens. code works in .vbs but not from the webserver (IIS6). Can someone tell me how to do this? I would also like to edit the registry if i can. Thanx
13
6349
by: cab0san | last post by:
I downloaded the DB2 runtime client, but the Client Base support and the TCP protocol do not install. I re-run the setup select them to run from disk, and they still show as not installed. What am I missing? Running Windows XP SP1
15
4462
by: brent | last post by:
I have a laptop with windows xp 1 gig ram 2.0 pentium M. When I run the db2 personal edition version 8.2 the install gets to the first screen and says windows installer is preparing to install. There is a back next and cancel button on the screen at the bottom. The next and the back are disabled and the cancel is the only one that is...
3
56949
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 want to test this service on a Windows Server 2003 box that doesn't have the Visual Studio Command prompt. How do I go about installing the...
2
7973
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: System.IO.FileNotFoundException: File or assembly name windowsservice1, or one of its dependencies, was not found.. " I am new to C# environment. Any idea any clue...
3
13775
by: Chris Wagner | last post by:
Anyone knows how to install/unistall service with VB.NET without using InstallUtil program? Thanks
4
3172
by: kkt49 | last post by:
# vim: et sw=4 ts=8 sts from wxPython.wx import * import sys, os, time import pywintypes import win32serviceutil import win32service import win32event import win32process
1
1343
by: =?Utf-8?B?QmVydG9sb25p?= | last post by:
I can not install any programs or use Windows Update. When I try to run the update I get error 0xC80003FA. I am also unable to install any programs whatsoever. In one case I get a "must install microsoft system installer" and it is unable to do so. But first things first, how do I get the windows update to work correctly? I tried the...
4
3694
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all, I continue with installation. I create three windows services. Each service has a Installer class.
0
7835
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7753
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8265
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7847
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6500
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5332
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3787
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2265
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 we have to send another system
0
1096
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.