You just need to add ServiceControl element to start the service; you also need this to remove the service on uninstall as ServiceInstall doesn't do that. To find out where the start is scheduled open up the MSI with Orca or InstEd and see where StartServices is in the InstallExecuteSequence.
There is one gotcha though if your service uses assemblies in the GAC that you are also installing the start will fail as the assemblies are added to the GAC after the start is scheduled - to get round this I have just shelled a call to "net start". Neil -----Original Message----- From: Ravi Raj [mailto:raviraj.callin...@gmail.com] Sent: 28 October 2012 19:57 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Installing Windows Service using WiX I guess I have to implement start service method. But can I start service WiX after successful install?? Also when/which phase this service deployment start while installing? On Mon, Oct 29, 2012 at 12:45 AM, John H Bergman (XPedient) < john.berg...@xpdnt.com> wrote: > I am curious, why would you not want to use the built in functionality? > > -----Original Message----- > From: Ravi Raj [mailto:raviraj.callin...@gmail.com] > Sent: Sunday, October 28, 2012 2:05 PM > To: General discussion for Windows Installer XML toolset. > Subject: [WiX-users] Installing Windows Service using WiX > > I wanted to install a service using WiX but I want to do this in > custom actions (C#) and not want to use <SeviceInstall> tags. How can > I make this possible?? > > Just wanted to ask, when this ServiceInstall executes (I know it will > be in deferred but when if I have some deferred actions already)?? > > -- > Thanks and Regards, > Ravi Raj > > ---------------------------------------------------------------------- > -------- > WINDOWS 8 is here. > Millions of people. Your app in 30 days. > Visit The Windows 8 Center at Sourceforge for all your go to resources. > http://windows8center.sourceforge.net/ > join-generation-app-and-make-money-coding-fast/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ---------------------------------------------------------------------- > -------- > WINDOWS 8 is here. > Millions of people. Your app in 30 days. > Visit The Windows 8 Center at Sourceforge for all your go to resources. > http://windows8center.sourceforge.net/ > join-generation-app-and-make-money-coding-fast/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- Thanks and Regards, Ravi Raj ------------------------------------------------------------------------------ WINDOWS 8 is here. Millions of people. Your app in 30 days. Visit The Windows 8 Center at Sourceforge for all your go to resources. http://windows8center.sourceforge.net/ join-generation-app-and-make-money-coding-fast/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ WINDOWS 8 is here. Millions of people. Your app in 30 days. Visit The Windows 8 Center at Sourceforge for all your go to resources. http://windows8center.sourceforge.net/ join-generation-app-and-make-money-coding-fast/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users