473,378 Members | 1,421 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,378 software developers and data experts.

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 8179
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*******@yahoo.nospammin.com> wrote in message
news:B8**********************************@microsof t.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
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....
13
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...
15
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. ...
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: 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:...
3
by: Chris Wagner | last post by:
Anyone knows how to install/unistall service with VB.NET without using InstallUtil program? Thanks
4
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
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...
4
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.
1
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.