Installing a Service on a Windows Server

Web application developers will eventually at some point need to install a service on a server that is running their system.  It seems like something only an administrator can do, but it isn’t a difficult or lengthy task.

To begin, copy the exe and app.config files of your program into a benign folder of the server.

Then, copy the InstallUtil.exe file into the same directory of your program.  The InstallUtil.exe file is in the %windir%\Microsoft.Net\Framework\<DotNetVersion> folder of the server.

Open a command line window and navigate to the above folder.  Then simply type InstallUtil <file name>.exe.

If  reinstalling a program, you need to precede the above command with

InstallUtil -u <file name>.exe

 

Advertisements
This entry was posted in Technical and tagged , , . Bookmark the permalink.

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