I have a service (which is installing and working no problem), but requires the "Smart Card" service to be running on install for it to function correctly. Is there a way to configure WiX installer (through the BURN bootstrapper or the main MSI) to start this service on install if it isnt running?
I have tried using a service control element, but I am concerned that the "Remove" attribute will cause the SmartCard service to be uninstalled when the application is!
It is unclear to me whether simply removing this attribute would solve the issue and wouldn't remove the service on uninstall. I only want to start the service if it's not running and leave it running on uninstall.
<Component Id="SmartCardServiceStarter" Directory="INSTALLFOLDER"
Guid="A-GUID" KeyPath="yes">
<ServiceControl Id="SmartCardServiceStarter"
Start="install"
Stop="uninstall"
Remove="???"
Name="SCardSvr"
Wait="yes" />
<Condition><![CDATA[STARTSERVICEONINSTALL <> "false"]]></Condition>
</Component>