[wix-users] system service does not uninstall

Phill Hogland phill.hogland at rimage.com
Wed Feb 3 07:24:04 PST 2016


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/


More information about the wix-users mailing list