Hi gentlemen, I'm using Wix-3.0.2420.0 to install service written in .NET 2.0. It should run under certain user that the installer creates.
I keep getting the error 1920 "service XXX failed to start, Verify that you have sufficient privileges to start system services". Another web page, I lost reference to, claims it means that something just went wrong starting the service and that most frequent error is not to set KeyPath to main service executable. I tried it. An application doing the same thing as the service runs well. This message hints that certain registry key should be created, is it true: http://www.nabble.com/RE:-HELP-on-ServiceInstall-p3000941.html ? What key then? What is the error in the file quoted below? Thank you very much. WiX file: <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns ="http://schemas.microsoft.com/wix/2006/wi" xmlns:x ="http://schemas.microsoft.com/wix/UtilExtension"> <Product Id="20df9a62-41b9-4702-abad-5c1d9f1d1155" Name="SomeLtd MegaSystem Fiddleware Service" Language="1033" Version="1.0.0.0" Manufacturer="Star Soft Labs" UpgradeCode="581bdd59-fc6e-4eee-bfcd-21c830fe28ee"> <Package InstallerVersion="200" Compressed="yes" Description="This will install MegaSystem Fiddleware Service."/> <x:Group Id='pwusr' Domain='$(env.COMPUTERNAME)' Name='Power Users'/> <Media Id="1" Cabinet="SomeLtd.MegaSystem.Install.cab" EmbedCab="yes" /> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLLOCATION" Name="MegaSystemFiddleware"> <Component Id='ServiceExeComponent' Guid='4fcdec9e-b65b-4a6f-8606-dc48d6b1a1fa' SharedDllRefCount='no' KeyPath='no' NeverOverwrite='no' Permanent='no' Transitive='no' Win64='no' Location='local'> <File Id='ServiceExeFile' Name='SomeLtd.MegaSystem.Service.exe' Source="$(var.SolutionDir)\SomeLtd.MegaSystem.Service\bin\Release\" ReadOnly='no' KeyPath='yes' Vital='yes' Hidden='no' System='no' Checksum='no' /> <File Id='ServiceConfig' Name='SomeLtd.MegaSystem.Service.exe.config' Source="$(var.SolutionDir)\SomeLtd.MegaSystem.Service\bin\Release\" ReadOnly='no' Vital='yes' Hidden='no' System='no' Checksum='no' /> <File Id='EntLibData' Name='Microsoft.Practices.EnterpriseLibrary.Data.dll' Source="$(var.SolutionDir)\SomeLtd.MegaSystem.Service\bin\Release\" ReadOnly='no' Vital='yes' Hidden='no' System='no' Checksum='no' /> <File Id='EntLibCommon' Name='Microsoft.Practices.EnterpriseLibrary.Common.dll' Source="$(var.SolutionDir)\SomeLtd.MegaSystem.Service\bin\Release\" ReadOnly='no' Vital='yes' Hidden='no' System='no' Checksum='no' /> <File Id='EntLibLogging' Name='Microsoft.Practices.EnterpriseLibrary.Logging.dll' Source="$(var.SolutionDir)\SomeLtd.MegaSystem.Service\bin\Release\" ReadOnly='no' Vital='yes' Hidden='no' System='no' Checksum='no' /> <File Id='EntLibBuilder' Name='Microsoft.Practices.ObjectBuilder.dll' Source="$(var.SolutionDir)\\SomeLtd.MegaSystem.Service\bin\Release\" ReadOnly='no' Vital='yes' Hidden='no' System='no' Checksum='no' /> <File Id='Business' Name='SomeLtd.MegaSystem.Business.dll' Source="$(var.SolutionDir)\SomeLtd.MegaSystem.Service\bin\Release\" ReadOnly='no' Vital='yes' Hidden='no' System='no' Checksum='no' /> <File Id='Data' Name='SomeLtd.MegaSystem.Data.dll' Source="$(var.SolutionDir)\SomeLtd.MegaSystem.Service\bin\Release\" ReadOnly='no' Vital='yes' Hidden='no' System='no' Checksum='no' /> <File Id='Entity' Name='SomeLtd.MegaSystem.Entity.dll' Source="$(var.SolutionDir)\SomeLtd.MegaSystem.Service\bin\Release\" ReadOnly='no' Vital='yes' Hidden='no' System='no' Checksum='no' /> <File Id='Database' Name='SomeLtd.MegaSystem.Data.Database.dll' Source="$(var.SolutionDir)\SomeLtd.MegaSystem.Service\bin\Release\" ReadOnly='no' Vital='yes' Hidden='no' System='no' Checksum='no' /> <!-- TODO FILES --> <x:User CreateUser="yes" UpdateIfExists="yes" Name="MegaSystemRunUser" PasswordNeverExpires="yes" Id="MegaSystemUSR" RemoveOnUninstall="yes" Password="1#2$3%" PasswordExpired="no" > <x:GroupRef Id="pwusr"/> </x:User> <ServiceInstall Id='ServiceInstall' Description='Fiddleware working service' DisplayName='SomeLtd MegaSystem Fiddleware Service' Name='MegaSystemService' ErrorControl='ignore' Interactive='no' Start='auto' Type='ownProcess' Vital='no' Account='MegaSystemRunUser' Password='1#2$3%' > </ServiceInstall> <ServiceControl Id='ServiceControl' Name='MegaSystem Fiddleware Service' Wait='yes' Start='install' Stop='both' Remove='uninstall'/> </Component> </Directory> </Directory> </Directory> <Feature Id='ServiceFeature' Title='MegaSystem Service 1.0' Description='MegaSystem Fiddleware service' Display='expand' Level='1' ConfigurableDirectory='INSTALLLOCATION'> <ComponentRef Id='ServiceExeComponent' /> </Feature> </Product> </Wix> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users