Understanding Installers

D

Dmitry Perets

Hello,

I wrote a Windows service in C# (.NET 1.1). As usual, it has its own
ProjectInstaller which is automatically invoked when I run
"InstallUtil myservice.exe". But I also have two separate class
libraries (from the same solution) which are referenced by my service.
They both have their own Installers with [RunInstaller(true)]
property, because there is some code that should be run. I was sure
that "InstallUtil myservice.exe" will also execute the installers of
those class libraries. But this is not the case.

Why? And how can I achieve that behavior (except for calling
separately "InstallUtil myservice.exe", "InstallUtil mylibrary1.dll",
"InstallUtil mylibrary2.dll"?

Thank you.
 
B

Bill Richards

Your best bet would be to wrap your other installers in merge modules rather
than installers per se, this way you can include the merge modules in your
service's installer, otherwise when the sub-installers attempt to install
you will get a Windows Installer error message saying that the Installer
Service is already running.
 

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