开发者

WIX:Getting error while starting the WCF service after installing

开发者 https://www.devze.com 2023-01-08 06:28 出处:网络
I am trying to create a wix installer to install and start a Windows Service. I am getting the following error:

I am trying to create a wix installer to install and start a Windows Service.

I am getting the following error: "Service"() could not be installed. Verify that you have sufficient privileges to install system services."

Below is the script i am using:

<File Id="filFBC5F84CB0C200C1A2F8FFB335A07753" KeyPath="yes" 
      Source="..\..\TestDotNet\Monarch.Server.WCF\EFI.Monarch.Server\bin\Release  \EFIMonarchServer.exe" />
<ServiceInstall Id="MonarchServerServiceInstaller"  
                Type="ownProcess" Vital="yes"  Name="EFI Monarch Server" 
                DisplayName="EFI Monarch Server"  
                Description="Testing EFI Monarch Server"  
                Start="auto" Account="LocalSystem" 
                ErrorControl="ignore" Interactive="yes" >
</ServiceInstall>  
<ServiceControl Id="StartService" Start="install" 
                Stop="both" Remove="uninstall" 
                Name="DiskManagement" Wait="yes" />
开发者_如何转开发


That message is always a red herring. It basically means you had an error starting the service. Anytime I put a new service into the install I leave the ServiceControl element out at first and start the service manually. If it won't start, I ( or the developer ) profile it to find out why. You could be missing a dependency, a problem with a service account ( not here ), problems connecting to a database or reading an xml file. The point is there is usually a problem with the service it self.

Once I can start it manually I go back and put the ServiceControl element back in.

0

精彩评论

暂无评论...
验证码 换一张
取 消