Install service and UI together

R

Rob Oldfield

I have an app that consists of two parts: a Windows service, and a UI that
allows users to change settings that determine how the service functions.

I can obviously create two msis and use both but, for simplicity, I'd like
to create an msi that installs both of these at the same time (the next
version might allow users to get at the UI from their own machines.... but
not yet).

I haven't tried anything yet, but is it just a case of importing the UI
project into the service solution and then doing something like adding the
primary output of both into the associated setup project?

Does anyone who has tried this have any tips?

Thanks.
 
P

Palo Mraz

I haven't tried anything yet, but is it just a case of importing the UI
project into the service solution and then doing something like adding the
primary output of both into the associated setup project?
Exactly!
 
D

Donald Adams

Good question.
I too need to do that, and would like to know if I can use my app to install
the service. If I just include the service.exe, can I, from my main UI app
simply call the service installer class that's embedded in the service.exe
to install the service or is there another method that uses the info from
the service installer class to setup the service? How do I do that?

Thanks in Advance,
Donald Adams
 
D

Donald Adams

To be clearer by service.exe below, I mean "MyService.exe".

Donald Adams said:
Good question.
I too need to do that, and would like to know if I can use my app to install
the service. If I just include the service.exe, can I, from my main UI app
simply call the service installer class that's embedded in the service.exe
to install the service or is there another method that uses the info from
the service installer class to setup the service? How do I do that?

Thanks in Advance,
Donald Adams
 

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