PC Review


Reply
Thread Tools Rate Thread

Deploying windows service

 
 
Sam Straub
Guest
Posts: n/a
 
      12th Dec 2003
I created a windows service and it installs and runs fine on my own machine.
I'm curious, how do I deploy it to a server? The project contains an
app.config file which holds my environment dependant variables, so where do
I put this file when I install the service on the server? In the case of an
asp.net web app the web.config file would just go into the web root, but
I've never done this before. Any help? Thanks.



 
Reply With Quote
 
 
 
 
John Lee
Guest
Posts: n/a
 
      12th Dec 2003
use installer project to do so.

"Sam Straub" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I created a windows service and it installs and runs fine on my own

machine.
> I'm curious, how do I deploy it to a server? The project contains an
> app.config file which holds my environment dependant variables, so where

do
> I put this file when I install the service on the server? In the case of

an
> asp.net web app the web.config file would just go into the web root, but
> I've never done this before. Any help? Thanks.
>
>
>



 
Reply With Quote
 
Sam Straub
Guest
Posts: n/a
 
      12th Dec 2003
I did this, I have a ProjectInstaller.vb with ServiceProcessInstaller1 and
ServiceInstaller1 and as I understand this was necessary to install on my
local machine, but I'm still not sure how this all works, are you saying
just use installutil.exe on the server and everything is taken care of? How
do I have an app.config on the server with differing variables? Would you
mind giving me more detail on the process / how it works? Thanks.

"John Lee" <john-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> use installer project to do so.
>
> "Sam Straub" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > I created a windows service and it installs and runs fine on my own

> machine.
> > I'm curious, how do I deploy it to a server? The project contains an
> > app.config file which holds my environment dependant variables, so where

> do
> > I put this file when I install the service on the server? In the case

of
> an
> > asp.net web app the web.config file would just go into the web root, but
> > I've never done this before. Any help? Thanks.
> >
> >
> >

>
>



 
Reply With Quote
 
Jim Mirra
Guest
Posts: n/a
 
      12th Dec 2003
You have to create an installer project and then install the exe on the
server usint installutil.exe from the command line. At least that is how I
have done it.

Jim
www.jimandal.com


"John Lee" <john-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> use installer project to do so.
>
> "Sam Straub" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > I created a windows service and it installs and runs fine on my own

> machine.
> > I'm curious, how do I deploy it to a server? The project contains an
> > app.config file which holds my environment dependant variables, so where

> do
> > I put this file when I install the service on the server? In the case

of
> an
> > asp.net web app the web.config file would just go into the web root, but
> > I've never done this before. Any help? Thanks.
> >
> >
> >

>
>



 
Reply With Quote
 
Jim Mirra
Guest
Posts: n/a
 
      12th Dec 2003
I don;t use a config file but i would assume you put it in the same dir as
theyour windows service exe.

Jim
www.jimandal.com


"Sam Straub" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I did this, I have a ProjectInstaller.vb with ServiceProcessInstaller1 and
> ServiceInstaller1 and as I understand this was necessary to install on my
> local machine, but I'm still not sure how this all works, are you saying
> just use installutil.exe on the server and everything is taken care of?

How
> do I have an app.config on the server with differing variables? Would you
> mind giving me more detail on the process / how it works? Thanks.
>
> "John Lee" <john-(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > use installer project to do so.
> >
> > "Sam Straub" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > I created a windows service and it installs and runs fine on my own

> > machine.
> > > I'm curious, how do I deploy it to a server? The project contains an
> > > app.config file which holds my environment dependant variables, so

where
> > do
> > > I put this file when I install the service on the server? In the case

> of
> > an
> > > asp.net web app the web.config file would just go into the web root,

but
> > > I've never done this before. Any help? Thanks.
> > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deploying Windows Service Joe Microsoft C# .NET 3 7th Apr 2006 06:36 PM
Deploying a Windows service Mark Rae Microsoft C# .NET 4 9th Mar 2005 12:31 AM
Deploying a Service in Windows 2K =?Utf-8?B?c2tiZXJnYW0=?= Microsoft Dot NET 2 10th Nov 2004 07:13 PM
Deploying Windows Service on XP with C# =?Utf-8?B?TWljaGFlbCBGZWFzdGVy?= Microsoft C# .NET 0 9th Jun 2004 03:31 PM
Deploying windows service Sam Straub Microsoft Dot NET 0 12th Dec 2003 07:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:30 AM.