I would suggest that if the user doesn't install the feature that contains the 
service component that he could go into Add/Remove Programs ( Programs and 
Features ) and use the Maintenance UI experience to add ( or remove ) that 
feature whenever he needs to.

I see no reason to keep the file around unless you have a  Run As Service or 
Run As Application type story.  In that case I'd have  FooApp.exe and 
FooService.exe and refactor the main logic into Foo.dll.  All three of these 
files should be keyfiles of their own components and FooApp.exe and Foo.dll 
should belong to one feature and FooService.exe and Foo.dll should belong to 
another feature.

You can repeat this pattern so each of these 5 services all belong 1 one atomic 
feature or to seperate features to give the user fine grain control. 
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



----- Original Message ----
From: Rune Moberg <jjfl...@gmail.com>
To: General discussion for Windows Installer XML toolset. 
<wix-users@lists.sourceforge.net>
Sent: Tue, January 25, 2011 10:32:35 AM
Subject: [WiX-users] ServiceInstall and KeyPath

I had a cunning plan.

I wanted to install everything - just in case. As a convenience for
the victim (uhm, "customer") I wanted to add a feature that would
install a service.

If the user misses that feature, he can simply find the executable and
register the service using -i as a command line parameter.

But <ServiceInstall> of course looks at KeyPath. The easiest way would
be to include the executable using <file>, but then how do I manage to
let the user keep the file around "just in case"?

I have about five services like this. They are not necessarily
supposed to be switched on right away.

-- 
Rune

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



      

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to