Should have taken another minute to look.

In the registry 

HKLM\System\CurrentControlSet\Services\Themes

Set the Start dWord to 2 (Automatic) instead of 4 (Disabled). If you
have Services applet open you can then F5 refresh to see the change.

So, should not require a Custom Action from what I can tell. Just a
Registry element and a ServiceControl element.

Chad

-----Original Message-----
From: Chad Petersen [mailto:chad.peter...@harlandfs.com] 
Sent: Wednesday, May 12, 2010 1:31 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Start an existing disabled service?

It is the ServiceInstall element in native WiX that sets the Start type
of the service. Since your installer is not installing this service
(Windows did that for us all) then I don't think you get to control that
aspect through your installer using native WiX. You'd almost certainly
be looking at a Custom Action if it is possible. Or a registry write
might get it.

The ServiceControl element could probably be used to start the service
once is isn't Disabled using the name THEMES

<ServiceControl Id='StartThemes' Name='THEMES' Start='install'
Wait='yes'/>

Hope that helps some
Chad

-----Original Message-----
From: Sajo Jacob [mailto:spja...@gmail.com] 
Sent: Wednesday, May 12, 2010 1:15 PM
To: wix-users
Subject: [WiX-users] Start an existing disabled service?

I have to start the "Themes" windows service from my MSI.

If the service is disabled on the target machine, I want to change the
service config to "Auto" and start the service. How can I do this in
WiX?

Thanks,
Jacob
------------------------------------------------------------------------
------

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------
------

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to