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