Services start from MSI installs countless times. There shouldn't be anything with that LocalService account either. It could be a missing dependency, if it's C++ and you're installing a runtime as a merge module or it's managed code with a dependency on an assembly in the GAC. In both those cases the dependent Dll isn't available when services are started. I assume the setup asks for elevation so it is permitted to start services. A couple of tests: 1. Change the wait to "no" and the install should complete. Manually start the service after the install has completed and see what happens.
2. Leave the account blank so it installs under local system and see if it starts. Assuming the install itself is elevated, these should give you some ide of whether it's a missing dependency, either a permanent one or one in your install, or if it's credential related. --------------- Phil Wilson On Fri, May 16, 2014 at 12:23 PM, Pavan Konduru <pavan.kond...@accelrys.com> wrote: > Try taking out the > Account="NT AUTHORITY\LocalService" > > I have a per-machine installer and my service works . It by default runs as > local system account. > > -----Original Message----- > From: Brian Enderle [mailto:bria...@gmail.com] > Sent: Friday, May 16, 2014 11:44 AM > To: WiX Users > Subject: [WiX-users] Starting a service from an MSI > > I have an MSI that installs everything correctly (when I don't try to start > the service). When I try to start the service it fails with the message > > "...Failed to start. Verify that you have sufficient privileges to start > system services" > > Is it possible to start a service from an MSI? > > Here is my relevant Product.wxs: > > > <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" > xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> > <Product Id="$(var.Guid)" > Name="$(var.ProductName) $(var.ShortAssyVersion)" > Language="1033" > Version="$(var.LongAssyVersion)" > Manufacturer="$(var.CompanyLegalName)" > UpgradeCode="$(var.UpgradeCode)"> > <Package InstallerVersion="300" > Compressed="yes" > InstallScope="perMachine" > InstallPrivileges="elevated" > Comments="$(var.ProductName) $(var.LongAssyVersion)" > Keywords="Version $(var.LongAssyVersion)"/> > > ........ > > <ComponentGroup Id="ProductComponents" Directory="INSTALLBINFOLDER"> > <Component Id="ProductComponent"> > <!--<File Id="Insert dll name" Name="Insert dll name again" > Source="Insert path to dll" Vital="yes" KeyPath="no" DiskId="1"/>--> > <File Id="ReportingServiceEXE" > Name="$(varReportingService.TargetFileName)" > > Source="$(var.ReportingService.TargetDir)\ReportingService.exe" > Vital="yes" > KeyPath="yes" > DiskId="1" /> > > <ServiceInstall Id="ServiceInstaller" > Type="ownProcess" > Vital="yes" > Name="Reporting Service" > DisplayName="Reporting Service" > Description="Just a test" > Start="auto" > Account="NT AUTHORITY\LocalService" > ErrorControl="normal" > Interactive="no" /> > > <ServiceControl Id="StartService" > Start="install" > Stop="both" > Remove="uninstall" > Name="Reporting Service" > Wait="yes" /> > ...... > > TIA, > > Brian > > If you can't explain it simply, you don't understand it well enough. - > Albert Einstein > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing platform > available Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing platform available > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users