I don't know much about registering services, but generaly, you can use
custom actions to run the program on install and uninstall.
1. In Solution Explorer, select your setup project.
2. On the View menu, point to Custom Actions.
3. Add Custom action in Install and Uninstall. In Properties window, you
can specify the application to run and the arguments in Arguments field.

Signature
Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
.NET and ASP .NET code
Alireza Haghshenass - 11 Sep 2004 16:09 GMT
Here is the information about Installing Services :
[WindowsDIR]\Microsoft.Net\Framwork\v1.1.4322\InstallUtil ServiceExeFile.exe
and for Uninstalling Services :
[WindowsDIR]\Microsoft.Net\Framwork\v1.1.4322\InstallUtil /u
ServiceExeFile.exe
How can I implement this?
Thanks in advance.
> I don't know much about registering services, but generaly, you can use
> custom actions to run the program on install and uninstall.
[quoted text clipped - 3 lines]
> 3. Add Custom action in Install and Uninstall. In Properties window, you
> can specify the application to run and the arguments in Arguments field.
Peter Macej - 12 Sep 2004 20:12 GMT
I think in custom action you cannot call external file which is not part
of your deployment project, such as
[WindowsDIR]\Microsoft.Net\Framwork\v1.1.4322\InstallUtil.
If such file is part of your setup project you can call it as I
described before:
1. In Solution Explorer, select your setup project (click on its name).
Right click, context menu appears.
2. Click the View submenu and select Custom Actions.
3. Right click Install in the tree and Add custom action. You can select
a file to execute and its arguments. You can do the same in Uninstall
section.
But for you there is still an easy way. VS .NET has predefined custom
actions including registration of services. I don't know much about it
but you can check the following help topic:
ms-help://MS.VSCC/MS.MSDNQTR.2003FEB.1033/vsintro7/html/vbconpredefinedcustomactions.htm
(type the whole line including ms-help: prefix in the URL bar in VS .NET
or just search for "Adding Predefined Custom Actions in the Custom
Actions Editor" in VS .NET help)
Sorry I cannot help you more on this topic.

Signature
Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
.NET and ASP .NET code