How to install Windows Service manually

There are two types of Windows Service Installation i.e. One is creating setup project, the other is installing the EXE manually. Here, I am trying to put up some tricks together for the later one.

First of all, Windows Service installation can be done using Visual Studio 2005/2008 Command Prompt. That means, you need Visual Studio installed in your target machine. Have a look at those simple Commands.


//Installing

InstallUtil “Windows Service executable Path”

//Uninstalling

InstallUtil “Windows Service executable Path” /U

However, if you don’t have Visual Studio, you need Dot Net Framework in your client machine to install Windows Service.


//Installing

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>installutil “Windows Service executable Path”

//Uninstalling

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>installutil “Windows Service executable Path” /U

To create Installer (Setup Project) for Windows Service you can have a look at this post.

Thanks
A Rahim Khan

Advertisements
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: