Install a Windows service using WIX

I have some problems with WIX Services. My msi installer can create a Service, but after creation, the installer cannot start it. There is my code that I use for the Service.

<Component Id="borland_comp" Guid="{6F723B32-E95A-4545-87FD-0B5F7B114FCA}" DiskId="1">
        <File Id="server_ScktSrvr.exe" Name="ScktSrvr.exe"  KeyPath="yes"/>
        <ServiceInstall Id="BORLAND_Socket"
                            Name="Borland Socket Server"
                            DisplayName="Borland Socket Server"
                            Type="shareProcess"
                            Start="auto"
                            ErrorControl="normal"
                            Description="Borland Socket Server" />

        <ServiceControl Id="StartWixServiceInstaller"
                        Name="Borland Socket Server" Start="install" Wait="no" />

        <ServiceControl Id="StopWixServiceInstaller" Name="Borland Socket Server"
                        Stop="both" Wait="yes" Remove="uninstall"/>

      </Component>
+3
source share
1 answer

I would combine two service controls to become:

  <ServiceControl Id="scBSS" Name="Borland Socket Server" Stop="both" Start="install" Wait="yes" Remove="uninstall"/> 

, , . ? ? , ? / , , , - ?

+3

Source: https://habr.com/ru/post/1773838/


All Articles