Please bear with me - it's been a while since I've dealt with this issue and the solution may be hopelessly old school. The tribal elders will likely have a better solution for this, but this should get you past the block.
Create one Component with Start="install" and one without the Start property (which means that it won't get started.) <Component Id="ServiceTyrellStart" and <Component Id="ServiceTyrellNoStart" Condition the components based on your property, e.g. STARTSERVICE versus NOT(STARTSERVICE) So that either one or the other component is installed but not both. Hope this helps! Wendell On Thu, Sep 17, 2009 at 9:07 AM, Lewis99 <andrewhawke...@gmail.com> wrote: > > 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 > -- "Some people come visit Europe and are really let down when they find out it's not like a credit-card commercial; others really get into meeting all the quirky people and careening along narrow mountain roads in rickety cabs driven by suicidal, gap-toothed Carpathians. I guess it's pretty obvious which one you are..." - Justin Crevier, May '01 ------------------------------------------------------------------------------ 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