Ravi,

As the <ServiceControl> element is under a <Component> you may specify a condition for that component. (<Condition> under <Component>)

So...

<Component ...>
        <Condition>STARTSERVICE</Condition>
        <ServiceControl ... />
</Component>

...should work


Best regards,
Sebastian Brand

Instyler Software - http://www.instyler.com


On Apr 11, 2008, at 24:39 , Ravikumar Gopinath wrote:
I have two issues that I need some help on:

1. I have a MSI which installs windows service on the box. It needs to be started on install only if a particular property is set. The ServiceControl element just has the "start" attribute. How can I get it to start the service only if a particular element is present? 2. I want to install a component based on whether a property is present or not. Can I use the Condition element to do this?

Thanks
Ravi


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to