473,408 Members | 2,832 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,408 software developers and data experts.

How to use the installutil to install a service

I want to install a service that I made in .Net.

I have trying the following in the Visual Studio .NET
Command Prompt:

installutil C:\myservice.exe

The above syntax did not work.

Is the systanx correct, if so why it's not work.If the
syntax is invalid then whats the correct one.
sincerely yours
Mike John
Jul 21 '05 #1
1 11046
The syntax is correct. Do you have a ProjectInstaller defined, because
without it it wont install. A VB example is below, you need to compile this
with your exe.

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------

<RunInstaller(true)> public class ProjectInstaller: inherits installer

private serviceInstaller As ServiceInstaller
private processInstaller As ServiceProcessInstaller

public Sub New()
MyBase.New()

processInstaller = new ServiceProcessInstaller()
serviceInstaller = new ServiceInstaller()

' Service will run under system account
processInstaller.Account = ServiceAccount.LocalSystem

' Service will have Start Type of Manual
serviceInstaller.StartType = ServiceStartMode.Manual

serviceInstaller.ServiceName = "My Service"

Installers.Add(serviceInstaller)
Installers.Add(processInstaller)
end sub
end class


"Mike John" <Ri********@hotmail.com> wrote in message
news:07****************************@phx.gbl...
I want to install a service that I made in .Net.

I have trying the following in the Visual Studio .NET
Command Prompt:

installutil C:\myservice.exe

The above syntax did not work.

Is the systanx correct, if so why it's not work.If the
syntax is invalid then whats the correct one.
sincerely yours
Mike John

Jul 21 '05 #2

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

Similar topics

3
by: TT (Tom Tempelaere) | last post by:
Hi there I am making a service project in C#, and I'm in the process of writing the installer. I made an installer class by using the "Add Installer" menu-item in the design window of the service,...
0
by: TT (Tom Tempelaere) | last post by:
Hi there The following is a description to reproduce the problem. I do not know if this is a bug in the .NET environment/framework (I suspect it is), or if there is something that I am doing...
7
by: scarred wind | last post by:
when i run my program, an error message prompt me that i should add the installutil.exe. How do i checked for the installutil.exe? How can i add it to my Timer program? ...
9
by: shaddock | last post by:
Hello, When trying to run the InstallUtil.exe, I get the error below. Any insights? 'installutil' is not recognized as an internal or external command, operable program or batch file. ...
3
by: Trevor | last post by:
Is "intstallutil.exe" (the program to install/uninstall a C# service) included with the .NET Runtime? Will an end user who does not have Visual Studio .NET installed still be able to execute...
5
by: Jamin Mace | last post by:
I'm trying to create a batch script that will allow me to use the .Net installutil.exe to install a windows service. I want to be able to specify the username and pasword in my script so that I...
4
by: moondaddy | last post by:
I installed the exception management block on my computer and it defaulted to: C:\Program Files\Microsoft Application Blocks for .NET\Exception Management\Code\VB\ Now I want to make a copy of...
1
by: phrankbooth | last post by:
Hi, New to windows services, but I've managed to create one and install it successfully. However, I'm confused about what the InstallUtil actually does. I'm not sure if it just registers and...
1
by: vovan | last post by:
My VB 6 program uses Windows Service I developed with VB 2005. Setup for VB 6 project, created in InstallShield 12, installs Framework 2 if it is not presented on the client machine. I ran setup...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.