I have tried like below just to stop a service: <ServiceControl Id='PMService' Name='XYZ AdminConsole' Stop='install' Wait='yes'/>
Installation goes on without any error, but the service is not stopped. I can stop the same service from command prompt(net stop XYZ AdminConsole) Any idea? Thanks! Richard-45 wrote: > > > In article <[EMAIL PROTECTED]>, > shapla <[EMAIL PROTECTED]> writes: > >> I have used the ServiceControl element as below: >> >> <ServiceControl Id='ADService' Name='XYZ AdminConsole' Start='both' >> Stop='uninstall'/> > > But didn't you say you wanted to *restart* the service? The calls for > a stop and a start. > >> I have logged on as Administrator and "XYZ AdminConsole" is running. >> >> Now if I run my MSI package, it is failing and showing: Service 'XYZ >> AdminConsole'(XYZ AdminConsole) failed to start. Verify that you have >> sufficient preveledges to start system services. >> >> Do you have any idea about? > > Windows Installer is essentially just doing a "net stop <svc>" to stop > a service and a "net start <svc>" to start a service. It uses a > default timeout of 30 seconds, IIRC. You can adjust the timeout if a > service is particularly slow to start. > > Basically, Windows Installer is just doing what you asked of it here; > it doesn't know why a service didn't start. You'll have to look more > into the service itself to identify why it didn't start. The "Verify > that..." message is just a catch all warning for the common problem of > not having sufficient privileges to control the service. > -- > "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download > <http://www.xmission.com/~legalize/book/download/index.html> > > Legalize Adulthood! <http://blogs.xmission.com/legalize/> > > ------------------------------------------------------------------------- > 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 > > -- View this message in context: http://www.nabble.com/start-and-stop-services-tf4715721.html#a13501470 Sent from the wix-users mailing list archive at Nabble.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