[wix-users] Does not uninstall windows service.
Harinatha Narisetty
harinatha.narisetty at us.abb.com
Mon Jun 26 07:42:07 PDT 2017
I have restarted the machine still 3 out of 4 does not get deleted. Only one gets deleted. Not sure why...
Here are the service files. I don't see any differeneces...
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>
_________________________________________________________________________________________________________________________________________________________________
Thanks
Hari
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Nir Bar
Sent: Friday, June 16, 2017 11:30 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Does not uninstall windows service.
Sometimes, Windows does not immediately delete the service. Instead, it marks it for deletion on next reboot.Most often, it happens when services.msc is open and the service selected (highlit).
Try closing the services window before uninstalling.
--Independent WiX Expert. Creator of-
https://JetBA.net - Native and WPF WiX BootstrapperApplication Frameworks
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list