Emma Hanna wrote:

I am installing a Windows Service which I need the user to indicate if they want the service started on install or not, and if it is started there is a SQL Script I have to execute. I'm using the script below to install the service, but am not sure how to conditionally start the service or how to execute a SQL script only if the service is started.


I'm not sure about the SQL, but you can conditionally start a service by putting the ServiceControl element in its own component.

--
sig://boB
http://bobs.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to