Conditional install of service - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ekramer11
Posts: 1
Joined: Tue Aug 30, 2011 7:29 pm

Conditional install of service

Greetings all,

I've been googling and searching on this site but I can't seem to find the answer to my question. I have some windows executables that can run in either console mode or service mode. I have a feature set up so in the hopes that I can conditionally install the executables as services but I can't seem to find anything to let me do just that. I want the executables installed either way. But I only want them installed as services if the feature is checked.

Anyone know if this can be accomplished?

Thank you for your time,

Ed
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Conditional install of service

Hi Ed,

Unfortunately this is not supported by Windows Installer. A service is either installed or it's not, it cannot be installed conditionally.

A solution is to install the service through a custom action instead of the built-in support. For example, you can try using InstallUtil.exe. Perhaps this thread will help:
http://social.msdn.microsoft.com/Forums ... fda34c1bc7

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”