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