473,511 Members | 16,888 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to install a service with a description?

mdb
When I'm using an Installer class to install my service, there doesn't seem
to be any way to provide a description. How can I accomplish this?

-mdb
Nov 22 '05 #1
1 1180
Look at the code generated behind the Project Installer. Add this in
Public Overrides Sub Install(ByVal stateSaver As
System.Collections.IDictionary)

MyBase.Install(stateSaver)

Dim oKey As RegistryKey

Dim sValue As Object

Try

oKey = Registry.LocalMachine.OpenSubKey("SYSTEM\CurrentCo ntrolSet\Services\"
& Me.ServiceInstaller1.ServiceName, True)

sValue = oKey.GetValue("ImagePath")

sValue = sValue & " " & Me.ServiceInstaller1.ServiceName

oKey.SetValue("ImagePath", sValue)

oKey.SetValue("Description", "Stick your description in here!!")

End Sub



"mdb" <m_b_r_a_y@c_t_i_u_s_a__d0t__com> wrote in message
news:Xn****************************@207.46.248.16. ..
When I'm using an Installer class to install my service, there doesn't
seem
to be any way to provide a description. How can I accomplish this?

-mdb

Nov 22 '05 #2

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

Similar topics

4
386
by: DraguVaso | last post by:
Hi, I developped a Windows Service in VB.NET (2005). I need to have it installed two times on 1 machine. When I want to install it a second time, the setup doesn't allow me to install it again...
1
333
by: mdb | last post by:
When I'm using an Installer class to install my service, there doesn't seem to be any way to provide a description. How can I accomplish this? -mdb
3
56929
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
4549
by: Ronald | last post by:
I just started with dotnetnuke, and with a wrong login (wrong password on a clean install i can crash the application pool from IIS. (when i login with the right username/password information the...
0
1000
by: Cynthia | last post by:
Hi, After installing the July security patch KB917159, our application service is not able to start. the Error I got is "Error 1053: The service did not respond to the start or control request...
5
7704
by: Ajith Menon | last post by:
I have to install .NET framework 3.0. I already have .NET Framework 1.1 installed on my machine. I don't want to remove framework 1.1 since some of the critical applications are using it. While...
3
4241
by: Jason Madison | last post by:
My SP1 install seemed to want to keep repeating the install. I spent 4 hours running the install, then it ran again (I got the message up saying it had finished, then it started again). I didn't...
5
38818
by: mivey4 | last post by:
Hi, First off, I am aware that this is a very heavily documented error and I have done my homework for throughly researching probable causes before deciding to post my problem here. At this point,...
3
15462
by: =?Utf-8?B?Um9iZXJ0IFNsYW5leQ==?= | last post by:
I'm trying to install a .NET Windows Service using the ServiceInstaller / ServiceProcessInstaller classes. I cannot seem to find a way to specify command line arguments. I've looked through...
2
2791
by: Scott | last post by:
Attempting to install WCF service on stand alone 2003 server as a admin user (not administrator but user "WCF" i.e user added to local admin group). It fails with user error: The description...
0
7242
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
7138
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...
1
7081
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
5668
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,...
0
4737
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
3225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
447
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.