http://www.eggheadcafe.com/articles/20041204.asp
check that article.
don't concentrate on the msmq stuff, but rather the slick way peter installs
and re-starts windows services.
From: "Jianwei Sun" <(E-Mail Removed)>
Subject: Re: dow do I publish a windows service?
Date: Wednesday, January 03, 2007 2:42 PM
Here is a good example, even it's vs2003, I believe it's pretty much the
same with vs2005.
http://www.codeproject.com/dotnet/si...owsservice.asp
roger_27 wrote:
> how do you create a setup package? or create an installer?
>
> When I was in school I never published an application. my apologies.
>
> "Ignacio Machin ( .NET/ C# MVP )" wrote:
>
>> Hi,
>>
>>
>> "roger_27" <(E-Mail Removed)> wrote in message
>> news:920FD87B-965B-476A-BBAE-(E-Mail Removed)...
>>> hey, after I select "publish" in my windows service, and i try to
install
>>> it
>>> on anotehr computer, it says i need to use installutil to install the
>>> service
>>> on the machine. isnt there some way to publish it so it automatically
>>> installs the service ??? dont tell me I need to make up a bat file and
>>> include installutil.exe with my software.
>> There is no way to "publish it" to a remote machine.
>>
>> What you can do is create an installer (.msi) and just distribute it, it
>> will contain all what you need to register/run your service.
>>
>> There is a guide somewhere in MSDN of how doing it (I lost the link
though)
>>
>> basically you add an installer to the service, later you add a setup
project
>> to the solution and add the primary output of the service, add custom
>> actions, and I think you are ready to go.
>>
>> I posted a time ago a step by step of how to install it, so also check
the
>> archives
>>
>>
>>
>> --
>> Ignacio Machin
>> machin AT laceupsolutions com
>>
>>
>>