Need to start only the services that were not omitted in the custom setup dialog.
I have a checkbox in the last dialog of my basic MSI install (SetupCompleteSuccess dialog) that, when checked, starts the services via a C# custom action. Currently, the CA starts all services. But, if the user disabled some of the services in the custom install dialog, i need to be able to start only those services that remain. I'm relatively new to IS, and can't figure out how I can access the list of services (or features) that the user has chosen to keep. IS must keep a collection of these for its own purposes when the StartServices CA is run, so I'm guessing it's a matter of finding this. Or maybe i could just call StartServices in my own CA and it would be that simple...?? Ha...
Hoping this is possible. Thanks in advance for your input.
Remember, when you are running your installer on a system - InstallShield itself is no longer involved. It is only the authoring tool. It is not technically used during the runtime of the MSI at all. Otherwise, everyone that installed your installer would need InstallShield first. I hope that makes sense. It is sort of a philosophical discussion.
Feature states are tracked by the operating system and the MSI engine.
Everything a person needs to know is here.
In a nutshell the Condition for the ServiceControl will be "&MyFeature=3" where you replace "MyFeature" with the name of your feature.
I hope that is somewhat helpful.
WiX seems to do the right thing automatically, if you read the Start attribute description here.