Home All Groups Group Topic Archive Search About

Setup windows service

Author
14 Nov 2007 6:18 AM
René Jensen
Hi

I have 2 questions about distribution of windows services.

1: How do you perform a click once on a windows service, so that I can
be updated on a regular basis? I can only find out how to distribute
the service by using a installer. So when I need to update I have to
uninstall and reinstall?

2: How do you make the installer setup up restart parameters for the
service (those where you say 1st time it crashes then do this, 2nd
time do this, etc? I have found one guide that requires loads of API
calls; sure it should be possible using managed code?

Thanks in advance

René Jensen

Author
14 Nov 2007 8:12 PM
Trevor Benedict
See if this sample helps.

http://www.codeproject.com/vb/net/WindowsServiceInstall.asp

Regards,

Trevor Benedict
MCSD

"René Jensen" <renehjen***@gmail.com> wrote in message
news:1195021131.420001.84350@o38g2000hse.googlegroups.com...
Hi

I have 2 questions about distribution of windows services.

1: How do you perform a click once on a windows service, so that I can
be updated on a regular basis? I can only find out how to distribute
the service by using a installer. So when I need to update I have to
uninstall and reinstall?

2: How do you make the installer setup up restart parameters for the
service (those where you say 1st time it crashes then do this, 2nd
time do this, etc? I have found one guide that requires loads of API
calls; sure it should be possible using managed code?

Thanks in advance

René Jensen
Author
16 Nov 2007 5:28 AM
René_Jensen
Thanks Treavor, but that example is the only one i have been able to
find so far, and that one requeres a few API calls.


René
Author
16 Nov 2007 7:56 PM
Trevor Benedict
Here is solution that is readily available
http://www.codeproject.com/install/sercviceinstallerext.asp

Regards,

Trevor Benedict
MCSD

Show quoteHide quote
"René Jensen" <rene_spam@theanimalhouse.dk> wrote in message
news:473d2a82$0$90274$14726298@news.sunsite.dk...
>> http://www.codeproject.com/vb/net/WindowsServiceInstall.asp
>
>
> Thanks Treavor, but that example is the only one i have been able to
> find so far, and that one requeres a few API calls.
>
>
> René
Author
20 Nov 2007 7:07 PM
René_Jensen
> Here is solution that is readily available
> http://www.codeproject.com/install/sercviceinstallerext.asp

That one was easier to use, but it still uses API's but never mind that :)

Does anyone know how to make a service Click once?