473,513 Members | 3,317 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows services unanswered recurring question

Hi guys:

I have a question about windows services, I have been trying to find
the answer but only found the same question from 3 years ago with no
response.
I wish you guys can help me with this....

.................................................. ............
Question posted by: Jacob Callcut (Guest) on November 15th, 2005
06:42 AM
To All,

When creating a Windows Service and selecting the "Add Installer"
option from the right-click menu in the service's design window, a
"ServiceProcessInstaller" and "ServiceInstaller" are automatically
created. Does anyone know if there is a way to customize what "Add
Installer" does? .....
.................................................. .................................................. ...

What does "Add Installer" ACTUALLY do behind the scenes?

Thanks...
Jul 11 '08 #1
3 1109
"vmantrana" wrote:
Hi guys:

I have a question about windows services, I have been trying to find
the answer but only found the same question from 3 years ago with no
response.
I wish you guys can help me with this....

.................................................. ............
Question posted by: Jacob Callcut (Guest) on November 15th, 2005
06:42 AM
To All,

When creating a Windows Service and selecting the "Add Installer"
option from the right-click menu in the service's design window, a
"ServiceProcessInstaller" and "ServiceInstaller" are automatically
created. Does anyone know if there is a way to customize what "Add
Installer" does? .....
.................................................. .................................................. ...

What does "Add Installer" ACTUALLY do behind the scenes?

Thanks...
Hi,

Short and simple answer, it auto generates new files. If you are looking
for ways to do this yourself, you need to extend visual studio in some way.
This page might be a good starting point to learn about this.

[Resources about Visual Studio .NET extensibility]
http://www.mztools.com/resources_vsnet_addins.aspx

--
Happy Coding!
Morten Wennevik [C# MVP]

Jul 11 '08 #2
Hi,

Short and simple answer, it auto generates new files. If you are looking
for ways to do this yourself, you need to extend visual studio in some way.
This page might be a good starting point to learn about this.

[Resources about Visual Studio .NET extensibility]http://www.mztools.com/resources_vsnet_addins.aspx

--
Happy Coding!
Morten Wennevik [C# MVP]
Thanks for the information. I think my question is actually centered
on how the service class and the ProjectInstaller class (which
contains the "ServiceProcessInstaller" and "ServiceInstaller") are
tied. This is probably a non-practical question...
Thanks.
Jul 11 '08 #3
Hello!

The service class itself is really nothing more than a object that derives
from the ServiceBase class which contains necessary members needed for
services to start, stop, and other various functions.

The installer class you need to add to your project is (assuming you have
the RunInstaller attribute decorating the class and set to true) will cause
the installutil.exe to locate the installer and use it during the
installation process. This is where the ServiceInstaller and
ServiceProcessInstaller objects you had to add to your installer file come
into play.

Those files tell the installer what settings to use while the service is
being installed on the target machine. Which account the service needs to
run as, any description about the service, and other pieces of information.
Those objects are then used during the pinvoke calls (done within the
ServiceInstaller class) needed by the installer to actually perform the
installation. If you're curious about what's going on behind the scenes
during the install, simply use .NET Reflector on the
System.ServiceProcess.ServiceInstaller class located in the
System.ServiceProcess assembly.

Hopefully that answers your question. :o)

- Jeff

"vmantrana" <vm*******@gmail.comwrote in message
news:b0**********************************@x35g2000 hsb.googlegroups.com...
>
>Hi,

Short and simple answer, it auto generates new files. If you are looking
for ways to do this yourself, you need to extend visual studio in some
way.
This page might be a good starting point to learn about this.

[Resources about Visual Studio .NET
extensibility]http://www.mztools.com/resources_vsnet_addins.aspx

--
Happy Coding!
Morten Wennevik [C# MVP]

Thanks for the information. I think my question is actually centered
on how the service class and the ProjectInstaller class (which
contains the "ServiceProcessInstaller" and "ServiceInstaller") are
tied. This is probably a non-practical question...
Thanks.
Jul 12 '08 #4

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

Similar topics

4
7105
by: Bill Sonia | last post by:
I'm written a Windows Service to send e-mails on events like OnStart, OnStop, OnShutDown using System.Web.Mail. It works for everything but OnShutdown. My guess is that once my send mail code is executed, other necessary Windows Services have been terminated before it can actually send the mail. I've updated my...
1
3279
by: Chris Dunaway | last post by:
A quick scan of the group did not immediately reveal an answer to my questions so here goes. First let me describe my app and then I'll ask the questions. I am writing a Windows Forms App (not Web Forms) that serves as a thin client to some web services. In other words, the Windows Forms app will be installed on the client machines and...
5
3868
by: Shabam | last post by:
I'm having a calendar feature developed whereby users can add recurring events. These recurring events can have start and end dates, meaning they will recur only within a date range. For instance, user A creates an event that recurs every Tuesday, from 1/1/05 - 3/2/06. The developer has decided that it would be good to have another table...
8
4165
by: Bill Sonia | last post by:
I've written a Windows Service to send e-mails on events like OnStart, OnStop, OnShutDown using System.Web.Mail. It works for everything but OnShutdown. My guess is that for OnShutDown, once my send mail code is executed, other necessary Windows Services have been terminated before it can actually send the mail. I've updated my...
1
2411
by: steve | last post by:
Hi All I am writing a program for a gymnasium for membership control It is the first time I have had to deal with appointment diaries and I want to know the best way to store recurring appointments 1. Do I calculate and save all future appointments as table records at the time of creation of the Recurring appointment or .. 2. Do I just...
5
1592
by: Larry | last post by:
Hi, I am a newcomer to VC++ (specifically programming on Microsoft platforms); and I have a very basic question about windows services. Using Windows Services mechanism is it possible to develop some application whereby I can have some kind of client-server type of communication. Let's say I have two machines A and B; with B acting as...
5
3272
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name? Why do I need to set a property within my code to the service name? Are all these required or am I just doing this for consistency purposes?
0
1709
by: =?Utf-8?B?TWVlbWEgSnVkeQ==?= | last post by:
I have a Verizon Palm Treo 755p and use Outlook 2002 on my new HP Pavilion (Vista 64-bit). When I was syncing on my old XP PC, everything worked fine. On the Vista PC, when I finally got it to sync (using a Bluetooth USB adapter), I ended up with recurring appointments that act wierd when I try to delete, move or edit them. It won't allow...
0
7269
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
7177
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
7559
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
7123
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
7542
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
4756
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
3248
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
1611
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
470
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.