View Full Version : Multiple Services using SRVANY.EXE

07-27-2018, 02:39 PM
I have been tasked with making an installer for a system that has multiple services using SRVANY.EXE.
I have it installing the services properly; but to do so I had to make SRVANY.EXE the Component for each service. I can name them appropriately. The problem is that because they all use the SRVANY.EXE Component I can't individually select/deselect services in the Feature Selection Tree.

If I make separate components for them I am able to individually select/deselect services... but then I am not able to install the service!

I am using something like the following command in an event to install the service.
INETSRV.EXE "My Service Name" SRVANY.exe

Does anyone have experience with this?

Correction; I can Select/Deselect the services in the FST, but all the services get installed, regardless of the selection.
Thanks for your ideas.

07-31-2018, 09:30 PM
Got this working. The problem was that it created the service properly but would not delete the service if I tried to uninstall more than one service. It worked fine with one, but the log showed that it did not even attempt to uninstall services if there were more than one. So I handled the modification/uninstall aspect of it in a Custom Action.