Page 1 of 1

Installer class not called when service installed.

Posted: Tue Jul 21, 2009 1:27 pm
by afriesen3
I am attempting to install a service. The service is .net with an installer class. When the service is installed (it is set to start automatically as well), the .net installer class is never called.

Shouldn't the "Install Service " action call the installer class?

If not, what must be done to get the installer class to run?

I can reproduce the problem with an installer that contains only the .net service executable with three service actions: Install Service, Start the service on install, and Stop and delete the service on uninstall.

Thanks,

Posted: Tue Jul 21, 2009 3:18 pm
by DevilSun
What you're looking for is to add it as an "Assembly" and mark "Run Installer Class" on it which in MSIcode translates to "Run .NET Installer Class".

Posted: Tue Jul 21, 2009 4:08 pm
by afriesen3
Thanks. I think that will do it.

Too bad InstallAware online help does not include notes in the Services section to cover this, pointing the reader to the Assemblies section. I have been highly unimpressed with the online help so far. For the most part, it barely gets past the tautological form of "the Install Service command is used to install a service."

Thanks again,