Thanks, it felt right to do the service install as part of the same
component.

Neil

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christopher Painter
Sent: 08 July 2008 14:13
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] ServiceInstall Advise

I might not be thinking of something, but generally I make them the same
component.   The reason it can be in a different component is because
it's possible to be stopping/starting/stopping a service that you didn't
install.
But since you are creating it, I'm not thinking of a reason to seperate
them.

One side note: Remember that the service install actions occur when the
component is being installed/uninstalled not the product or feature is
being installed or uninstall. 

Christopher Painter, Author of Deployment Engineering Blog
Have a hot tip, know a secret or read a really good thread that deserves
attention? E-Mail Me


--- On Tue, 7/8/08, Neil Sleightholm <[EMAIL PROTECTED]> wrote:

> From: Neil Sleightholm <[EMAIL PROTECTED]>
> Subject: [WiX-users] ServiceInstall Advise
> To: "General discussion for Windows Installer XML toolset."
<wix-users@lists.sourceforge.net>
> Date: Tuesday, July 8, 2008, 5:49 AM
> I am installing a service by using a fragment like this:
> 
>      <Component Id="Service" ... >
> 
>         <File Id="Service" ... />
> 
>         <ServiceInstall Id="Service" ... />
> 
>         <ServiceControl Id="StartService" ...
> />
> 
>         <ServiceControl Id="StopService" ...
> />
> 
>       </Component>
> 
>  
> 
> Is this a good or bad structure, should the ServiceInstall
> and
> ServiceControl be in their own components, e.g.:
> 
>      <Component Id="Service" ... >
> 
>         <File Id="Service" ... />
> 
>       </Component>
> 
>      <Component Id="ServiceStuff" ... >
> 
>         <ServiceInstall Id="Service" ... />
> 
>         <ServiceControl Id="StartService" ...
> />
> 
>         <ServiceControl Id="StopService" ...
> />
> 
>       </Component>
> 
>  
> 
> Are there any advantages or disadvantages to the structure
> I have used?
> 
>  
> 
> Thanks
> 
>  
> 
> Neil
> 
>  
> 
> Neil Sleightholm
> X2 Systems Limited
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> 
>  
> 
>
------------------------------------------------------------------------
-
> Sponsored by: SourceForge.net Community Choice Awards: VOTE
> NOW!
> Studies have shown that voting for your favorite open
> source project,
> along with a healthy diet, reduces your potential for
> chronic lameness
> and boredom. Vote Now at
> http://www.sourceforge.net/community/cca08
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


      

------------------------------------------------------------------------
-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to