It should be possible to have two different ServiceInstall elements under a
single Component - how else would you implement multiple services sharing a
single process, like IIS has (IISadmin, SMTP, NNTP, FTP all share an
inetinfo.exe process)? However, the Id of the ServiceInstall element is the
name of the registry key under HKLM\System\CurrentControlSet\Services, so if
you had two ServiceInstall entries this key would be different depending on
which you chose.

 

I think you might need to have an immediate custom action which modifies the
ServiceInstall table appropriately. I'm not sure whether you'd need to have
this run whenever the package is loaded (e.g. for a repair) - I assume that
you probably would. You'll need to edit the StartType column - see the
ServiceInstall Table documentation in the Platform SDK.

 

-- 

Mike Dimmick

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Keith
McCanless
Sent: 01 October 2007 16:17
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] ServiceInstall Question

 

I have a service that needs to  be either set to "disabled" or "auto"
depending on the Feature that the user selects.  Since the ServiceInstall
element refers to the KeyPath of the Component (the service executable) and
since the same executable cannot be listed in two File elements, how can
this be done?

 

 

Thanks,

Keith

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to