I have problem when the uninstalling my app is not removing the files. I find out that there when app is uninstalling in log it prints:
...
MSI (s) (0C:84) [11:39:07:836]: Disallowing uninstallation of component: {51DB6066-AFCD-5A03-BE34-09E197799057} since another client exists
...
Then I find out by using WiX Toolset has the API called DTF (mentioned in Wix toolset: complete cleanup after "disallowing uninstallation of component since another client exists"), and i executed query in LinqPad (c# Statement):
(F4 press to import namespaces and additiona reference)
//using Microsoft.Deployment.WindowsInstaller;
//using System.Linq;
// <ref>"C:\Program Files (x86)\WiX Toolset v3.9\SDK\
Microsoft.Deployment.WindowsInstaller.dll"</ref>
var client = ComponentInstallation.AllComponents
.Where (c => c.ComponentCode == "{72ED6979-0AAD-317C-A25C-AB9A121E6D30}")
.Select(c => c);
client.Dump();
that there is old recods:
I cant remove them using "msiexec /x {GUID}" becouse these products is marked as "IsInstalled=False".
So how to remove these old records?