Pretty much any error that Windows Installer has with the SCM gets "translated" into that error message (it doesn't ever provide the actual error that the service APIs returned). Thus, you can't assume it really is an access denied. That part is just a hint (for non-.NET code, that is the assumed most frequent issue, although SxS issues tend to be the most frequent these days).
After installation is complete, can you start the service? There are usually entries in the computer's event logs related to service starts, what do they say? If the service is .NET, does the service depend on anything you installed into the GAC? (the actual adding to the GAC doesn't happen until Commit, while service start happens well before then. If the service depends on the C++ runtime (or any other similar code) that is also installed in your MSI, that runtime is also setup during Commit, so the same issue exists as the previous comment. -----Original Message----- From: bonn deng [mailto:bonnd...@gmail.com] Sent: Monday, August 03, 2009 7:25 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Service failed to start using WiX3.0 Hello, everyone! I'm a totally newbie in WiX. I was using WiX3.0 and wanted to install a windows service through it, I did as the guide says and I can install the service but I can't start it on install. The message I got is "Service failed to start. Verify that you have sufficient privileges to start system services." and I'm using one administrator account in Windows XP. Here's my code, any suggestion? I'd appreciate it! {{{ <DirectoryRef Id="APPLICATIONFOLDER"> <Component Id="WindowsFormApp1" Guid="cdd8eb1b-6584-46ae-88c5-54e31ea1ae16" Location="local"> <File Id="WindowsFormApp1.exe" Name="$(var.WindowsFormApp1.TargetFileName)" Source="$(var.WindowsFormApp1.TargetPath)" DiskId="1" KeyPath="yes" /> <ServiceInstall Id="TestServiceID" Type="ownProcess" Vital="yes" Name="BonnTestService" Description="Bonndeng Test Service!" Start="auto" Account="LocalSystem" ErrorControl="ignore" Interactive="no"> </ServiceInstall> <ServiceControl Id="serviceControlID" Name="BonnTestService" Start="install" Stop="both" Remove="uninstall" Wait="yes" /> </Component> </DirectoryRef> }}} Thanks in advance! best regards, Bonn ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users