Installed WIX program does not uninstall correctly

This is my situation.

I have two programs. Lets call them program A and program B. Both of them use WIX to create MSI packages.

A is a WindowsService, B is a Windows WCF service

When I install services, A and B install without problems. Without the inclusion of services.

When I try to delete A or B (the order does not matter), the installed information is not deleted from the registry and the service is still displayed on the service management console. However, the files in the directory are deleted.

I need to go to the command line and manually enter “sc delete A.exe (or B.exe)” to remove this service from the registry console and the management service.

After that, the second program that will be removed will delete without problems.

It doesn’t matter which program I try to delete, the result is the same.

I do not know what dependencies or something else does not lead to the fact that the uninstall process will not be able to completely remove the first program.

If you have any ideas, please help .. go crazy .. !!!

Baku

+3
source share
4 answers
  • Do you have duplicate GUIDs in settings? make sure the component circuits are unique and that no pointer is used in both installations.
  • Are you using ServiceInstall to remove a service on deletion?
0
source

This is what the corresponding section in my WiX file looks like:

<ServiceInstall Arguments="CdiTranIdSvc" Account="$(var.SvcUserDomain)\$(var.SvcUserLogin)" Password="$(var.SvcUserPassword)" Id="ServiceInstallTranIdentification" Name="CdiTranIdSvc" Type="ownProcess" Start="auto" ErrorControl="normal" DisplayName="CDI Transactions Identification">

<ServiceControl Id="ServiceControlTranIdentification" Name="CdiTranIdSvc" Start="install" Stop="uninstall" Remove="uninstall">
0
source

, , , , , .

: http://plainoldstan.blogspot.com/2010/11/wix-installing-and-uninstalling-windows.html

, . , : Remove = "both".

node:

<ServiceControl Id='ControlStansWinService' Remove='both' Name='StansWinService' 
                        Start='install' Stop='both' Wait='yes' />

, , , "sc delete [ ]". , , "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services"

, -. WIX !

0

CleanUp Microsoft Windows. .

-2

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


All Articles