Can someone tell me the best way to conditionally determine whether a service is started based on user input. I have added a checkbox 'Start Service' to the VerifyReadyDialog and want to use that selection to condition whether the service is started or not.
My ServiceControl element looks like this <ServiceControl Id='TyrellForwarderService' Name='Tyrell Forwarder' Start='install' Stop='both' Remove='uninstall' Wait='yes'/> The start property only has enum values of install/uninstall/both so I don't see how I can use a property value here as it won't be recognised as a valid value. As you will know removing the start property stops the service from starting. So somehow I need to be able to condition the removal of the start property. Also, if I manually edit the MSI and add a condition to the StartServices InstallExecuteSequence row of And INSTALLSERVICE = 1 it works. So the question is - what is the best way to achieve this. Can I define two ServiceControl elements with different ID's and pick one at runtime somehow? Alternatively how do I set a condition on an InstallExecuteSequence row via WIX? Any advice on the best way to achieve this would be greatly appreciated. I am trying to get my head around both WIX and MSI's in general so I may be taking the wrong approach completely. Thanks -- View this message in context: http://n2.nabble.com/Start-service-based-on-user-choice-tp3664066p3664066.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users