[wix-users] system service does not uninstall

Phil Wilson phil.wilson at mvps.org
Wed Feb 3 10:16:03 PST 2016


It looks like there are more than 200 components in the package that won't
uninstall because they are shared. That might in fact be everything in the
MSI file. 
Phil  

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of
Phill Hogland
Sent: Wednesday, February 03, 2016 9:43 AM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] system service does not uninstall

Your MSI log indicates that there is some other installation that is using
the same components so this package cannot uninstall them.  I don't have any
expertise in this area, but if you do not have another application installed
which needs these components are you doing your testing on a clean system?
It seems to be an MSI reference counting issue.

Here is a thread in the old wix-users form which speaks to this issue:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Disallowing-un
installation-of-component-since-another-client-exists-td5420132.html


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of
Brannon King
Sent: Wednesday, February 03, 2016 11:21 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] system service does not uninstall

In response to the request for the log, it's an uninstall problem not an
upgrade problem. I haven't even got to testing upgrades yet. I've already
attempted to send the log three times. The first two were blocked because of
size. The last one apparently got filtered some other way. In desperation:

Burn log:
https://docs.google.com/document/d/155i65Byp13DuKfqFQzDJRpGeFkaKUPuvFvOMHtba
Ahs/edit?usp=sharing

Msi log:
https://docs.google.com/document/d/1VekcAdmopFMY4Nwp8Jj-LSq5Mm9037Ly9cGPQaXz
7n0/edit?usp=sharing






From: Phill Hogland<mailto:phill.hogland at rimage.com>
Sent: Wednesday, February 3, 2016 8:24 AM
To: WiX Toolset Users Mailing List<mailto:wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] system service does not uninstall

I agree with Blair's request for logs to understand the issue.

I would also use:
<util:RestartResource ServiceName=" MobiusServer "/>

And make sure that service is handling the request to stop correctly and not
signaling that it is stopped (when in fact it should be in a stop-pending
state until it actually frees its resources and is actually stopped.)  If it
signals that it is stopped to early, that could be causing a MSI rollback
resulting in a reinstall of the service's files.  But that would be
dependent on the design of the service.  One would need to look at the MSI
logs to see if this guess is related to your observations.
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of
Blair Murri
Sent: Wednesday, February 03, 2016 12:14 AM
To: wix-users at lists.wixtoolset.org
Subject: Re: [wix-users] system service does not uninstall

Please share your upgrade log.

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
10

From: Brannon King<mailto:Brannon.King at asirobots.com>
Sent: Tuesday, February 2, 2016 10:11 PM
To: wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>
Subject: [wix-users] system service does not uninstall

Since I could not get my deferred custom action to execute in time to remove
my service before removing files, I attempted to use the builtin
ServiceInstall/Control stuff. It installs and starts my service just fine.
However, it does not do the inverse on uninstall (even if I manually stop
the service before running the uninstaller). It leaves the service running,
fails to remove all files, successfully removes itself from add/remove
programs, and then tells me it successfully uninstalled. My only recourse
then is to change the Product ID and try again (I'm not aware of any
recovery for 723 of these: "Disallowing uninstallation of component:
{B7184A6D-F04E-5138-B489-ADB28B3737C4} since another client exists"). Am I
missing something? Do I need something in my InstallExecuteSequence? (It
currently just contains two unrelated custom actions and WriteIniValues.) If
you set InstallExecuteSequence at all, do you have to fill in all entries
for it? I figured StopServices would get added automatically.

<ServiceInstall Id="MobiusServerInstall" Interactive="no" Vital="yes"
                                                Type="ownProcess"
Name="MobiusServer" DisplayName="Mobius Server"
                                                Start="auto"
ErrorControl="normal">

                <util:ServiceConfig
                  FirstFailureActionType='restart'
                  SecondFailureActionType='restart'
                  ThirdFailureActionType='restart'
                  RestartServiceDelayInSeconds='0'
                  ResetPeriodInDays='1'/>

</ServiceInstall>
<ServiceControl Id="MobiusServerControl" Stop="both" Remove="uninstall"
Name="MobiusServer"
                                               Wait="yes" Start="install"/>



This message contains confidential information and is intended only for the
recipient. If you are not the named addressee you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately if you
have received this e-mail by mistake and delete this e-mail from your
system. Finally, the recipient should check this email and any attachments
for the presence of viruses. The company accepts no liability for any damage
caused by any virus transmitted by this email.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/

This message contains confidential information and is intended only for the
recipient. If you are not the named addressee you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately if you
have received this e-mail by mistake and delete this e-mail from your
system. Finally, the recipient should check this email and any attachments
for the presence of viruses. The company accepts no liability for any damage
caused by any virus transmitted by this email.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/





More information about the wix-users mailing list