Understanding Installers

  • Thread starter Thread starter Dmitry Perets
  • Start date Start date
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.
 
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.
 
Back
Top