[wix-users] Does not uninstall windows service.

Harinatha Narisetty harinatha.narisetty at us.abb.com
Fri Jun 16 07:04:32 PDT 2017


I have created the bundle exe. As part of my MSI I install two services and start them. Uninstall them when the product is uninstalled.  Everything works  fine on  fresh machines. I am facing below problem on some of the development and qa machines.

Both the files look same except file names. Is there anything I need to verify on few machines where the service entries not removed upon uninstallation?


SERVICE 1: This does not remove the entry from services consistently. 
___________________________________________________________________________________________________________________________________________________________
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <Fragment>
    <DirectoryRef Id="INSTALLFOLDER">
      <Component Id="cmpF72D616633843FCA395CDDB8A93C4B7B" Guid="*">
        <File Id="fil25350218530CE4665A3459AF510A0167" KeyPath="yes" Source="$(var.DataManagementServiceFolder)\Enerprise.Services.Hosts.DataManagement.exe" />
        <ServiceInstall Id="DataManagementServiceInstall" Name="ABBDataManagedService-$(var.PlainVersionNumber)"  DisplayName="ABB Enterprise Software $(var.DisplayVersion) Data Management Service" Description="Provides data access services to ABB products." Start="auto" Interactive="no" Type="ownProcess" Vital="no" ErrorControl="ignore" Account="[SERVICE_ACCOUNT_NAME]" Password="[SERVICE_ACCOUNT_PASSWORD]" />
		<ServiceControl Id="DataManagementServiceControl_Start" Name="ABBDataManagedService-$(var.PlainVersionNumber)" Start="install" Wait="no" />
		<ServiceControl Id="DataManagementServiceControl_Stop" Name="ABBDataManagedService-$(var.PlainVersionNumber)" Stop="both" Remove="uninstall" Wait="yes" />
      </Component>
      <Component Id="cmp5F7D35DCD103A8D09AD8652F66410288" Guid="*">
        <File Id="filF66274201CBC46CB95039E857ABE577B" KeyPath="yes" Source="$(var.DataManagementServiceFolder)\Enerprise.Services.Hosts.DataManagement.exe.config" />
      </Component>
    </DirectoryRef>
  </Fragment>
  <Fragment>
    <ComponentGroup Id="DataManagementHostComponentGroup">
      <ComponentRef Id="cmpF72D616633843FCA395CDDB8A93C4B7B" />
      <ComponentRef Id="cmp5F7D35DCD103A8D09AD8652F66410288" />
    </ComponentGroup>
  </Fragment>
</Wix> 
_____________________________________________________________________________________________________________________________________________________
SERVICE 2: This works fine consistently without any problem.
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <Fragment>
        <DirectoryRef Id="INSTALLFOLDER">
            <Component Id="cmp2C00F2927E47B542E48BD1FBB9C20C5E" Guid="*">
                <File Id="fil49B9C2A4ADC4CC1FF0689276D338B4B4" KeyPath="yes" Source="$(var.EnerpriseConfigServiceFolder)\Enerprise.Config.Security.ServiceHost.exe" />

<ServiceInstall Id="ConfigurationHostServiceInstall" Name="ABBConfigHostService-$(var.PlainVersionNumber)" DisplayName="ABB Enterprise Software $(var.DisplayVersion) Configuration Host" Description="Hosts the configuration services for ABB products." Start="auto" Interactive="no" Type="ownProcess" Vital="no" ErrorControl="ignore" Account="[SERVICE_ACCOUNT_NAME]" Password="[SERVICE_ACCOUNT_PASSWORD]" />
<ServiceControl Id="ConfigurationHostServiceControl_Start" Name="ABBConfigHostService-$(var.PlainVersionNumber)" Start="install" Wait="no" />
<ServiceControl Id="ConfigurationHostServiceControl_Stop" Name="ABBConfigHostService-$(var.PlainVersionNumber)" Stop="both" Remove="uninstall" Wait="yes" />

            </Component>
            <Component Id="cmpA0D2BE7FC6AD2D80FDBB9E69265A55CC" Guid="*">
                <File Id="filE067C606AAEE49EDB25345456375D4D6" KeyPath="yes" Source="$(var.EnerpriseConfigServiceFolder)\Enerprise.Config.Security.ServiceHost.exe.config" />
            </Component>
        </DirectoryRef>
    </Fragment>
    <Fragment>
        <ComponentGroup Id="EnerpriseConfigServiceComponentGroup">
            <ComponentRef Id="cmp2C00F2927E47B542E48BD1FBB9C20C5E" />
            <ComponentRef Id="cmpA0D2BE7FC6AD2D80FDBB9E69265A55CC" />
        </ComponentGroup>
    </Fragment>
</Wix>
_________________________________________________________________________________________________________________________________________________________________


More information about the wix-users mailing list