I suspect a single component would work (or just the existing component that requires the service to stop and start) with ServiceControl because the usual sequence during an install is StopServices.... WriteRegistryValues... StartServices. You'd have a ServiceControl for Sql Express that does both start and stop on install with your registry update in between.
Phil Wilson -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett Sent: Friday, September 07, 2007 2:35 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Restarting an existing service (SQLEXPRESS) The ServiceControl element may help. There's no option to restart a service, only to stop or start on install/uninstall/both. I'm pretty sure that the StopServices action occurs before the StartServices action, so you could create 2 components, one to stop the service on install, and another to start the service on install. You would then have to make you're modifications between these events. I've no clue how valid an idea this is, but it's a starting point. Rob Peter Conlon wrote: > All, > > I need to change a configuration parameter on a existing service as part of > a product install. > > I can easily change the registry value concerned but I have been unable to > restart the service after the change has been made. > > Any ideas as to how to do this in WIX? (have tried using the 'net' command > in a custome action). > > Thanks for any help. > > Peter > > _________________________________________________________________ > Download the latest version of Windows Live Messenger NOW! > http://get.live.com/en-ie/messenger/overview > > > ------------------------------------------------------------------------ - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users