VB.NET service installer

M

MrTickle

Hello all,
Can anyone please help me out? I know how to make a windows service
using VS.NET but what i am after is how do i make a windows service
with an exe i.e. instal the exe through code as a service?
I have an application that i want to be able to pass in the path of an
exe and all of other arguments to create a service e.g. startup type,
description, name e.t.c
Can anyone point me in the correct direction or give me some clues?
The exe to be passed in can run as a service (i am guaranteed that)
Cheers
 
C

Chris Dunaway

If you're interested, I have some code that does that. I used it in my
service so I could install it without having to use the InstallUtil.

The use can install my service by typing servicename.exe /install
and uninstall it using the /uninstall switch.

The code should be able to do what you want. I can zip it up and send
it if you are interested.

Chris
 
C

Chris Dunaway

I just looked for it and don't have it as my present location, but I
know I have it on a different machine. I'll have to get it and send it
to you, but it will be later this evening (around 5:30pm or so,
Central Time).

Sorry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top