Why do you need it "after" the service starts?

MSI creates directories, copies files, writes registry,  creates services 
and starts services in that order because it makes sense.   You could 
override the default sequence and write registry after starting services 
but that would be for all registry values and it doesn't really make sense 
to me to do it that way.

----------------------------------------
 From: "Ravi Raj" <[email protected]>
Sent: Sunday, October 28, 2012 10:47 PM
To: "General discussion for Windows Installer XML toolset." 
<[email protected]>
Subject: Re: [WiX-users] Installing Windows Service using WiX

Thanks all, for this cool info, now just one more thing. I want to store
some value in the registry just after my service starts. Is there a way to
do this via wix?

On Mon, Oct 29, 2012 at 2:58 AM, Neil Sleightholm 
<[email protected]>wrote:

> 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:[email protected]]
> 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) <
> [email protected]> wrote:
>
> > I am curious, why would you not want to use the built in 
functionality?
> >
> > -----Original Message-----
> > From: Ravi Raj [mailto:[email protected]]
> > 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
> > [email protected]
> > 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
> > [email protected]
> > 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
> [email protected]
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

-- 
Thanks and Regards,
Ravi Raj
----------------------------------------------------------------------------
--
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to