Note that there are some explanatory texts on larger screens.

plurals
  1. POWix does not remove service and files on uninstall
    primarykey
    data
    text
    <p>First of all I read this topic: <a href="https://stackoverflow.com/questions/1429859/why-isnt-my-service-deleted-on-uninstall-wix">Why isn&#39;t my service deleted on uninstall? (WIX)</a>, but it didn't help.</p> <p>I am tyrying to install my application with SQLite interop as Windows Service. Install works great, but during uninstall only SQLite.Interop.dll files are deleted, service is still running and files are deleted at all.</p> <p>My WIX file look like following:</p> <pre><code>&lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"&gt; &lt;Product Id="*" UpgradeCode="12345678-1234-1234-1234-111111111111" Name="MyApp Agent" Version="1.0.0" Manufacturer="MyApp" Language="1033"&gt; &lt;Package InstallerVersion="200" Compressed="yes" Comments="MyApp installer package" /&gt; &lt;Media Id="1" Cabinet="product.cab" EmbedCab="yes" /&gt; &lt;PropertyRef Id="NETFRAMEWORK40FULL" /&gt; &lt;Condition Message="This application requires .NET Framework 4.0. Please install the .NET Framework then run this installer again."&gt;&lt;![CDATA[Installed OR NETFRAMEWORK40FULL]]&gt;&lt;/Condition&gt; &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt; &lt;Directory Id="ProgramFilesFolder"&gt; &lt;Directory Id="INSTALLDIR" Name="MyApp"&gt; &lt;Component Id="ApplicationFiles" Guid="12345678-1234-1234-1234-222222222222"&gt; &lt;File Id="SelfUpdate.exe" Source="!(bindpath.MainConsoleApp)\SelfUpdate.exe" /&gt; &lt;File Id="SQLite.Net.dll" Source="!(bindpath.MainConsoleApp)\SQLite.Net.dll" /&gt; &lt;File Id="SQLite.Net.Platform.Win32.dll" Source="!(bindpath.MainConsoleApp)\SQLite.Net.Platform.Win32.dll" /&gt; &lt;ServiceInstall Id="TrackCube" Type="ownProcess" Vital="yes" Name="TrackCube" DisplayName="TrackCube" Description="TrackCube" Start="auto" Account="LocalSystem" ErrorControl="ignore" Interactive="no"&gt; &lt;ServiceConfig DelayedAutoStart="yes" OnInstall="yes" OnReinstall="yes"/&gt; &lt;util:ServiceConfig FirstFailureActionType="restart" SecondFailureActionType="restart" ThirdFailureActionType="restart" ResetPeriodInDays="1" RestartServiceDelayInSeconds="20" /&gt; &lt;/ServiceInstall&gt; &lt;ServiceControl Id="StartService" Start="install" Stop="both" Remove="uninstall" Name="TrackCube" Wait="yes" /&gt; &lt;/Component&gt; &lt;Directory Id="DIR_x86" Name="x86"&gt; &lt;Component Id="ApplicationFiles32" Guid="12345678-1234-1234-1234-222222222224"&gt; &lt;CreateFolder /&gt; &lt;File Id="SQLite.Interop.dll.86" Name="SQLite.Interop.dll" Source="!(bindpath.MainConsoleApp)\x86\SQLite.Interop.dll" /&gt; &lt;/Component&gt; &lt;/Directory&gt; &lt;Directory Id="DIR_x64" Name="x64"&gt; &lt;Component Id="ApplicationFiles64" Guid="12345678-1234-1234-1234-222222222228"&gt; &lt;CreateFolder /&gt; &lt;File Id="SQLite.Interop.dll.64" Name="SQLite.Interop.dll" Source="!(bindpath.MainConsoleApp)\x64\SQLite.Interop.dll" /&gt; &lt;/Component&gt; &lt;/Directory&gt; &lt;/Directory&gt; &lt;/Directory&gt; &lt;/Directory&gt; &lt;Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" /&gt; &lt;Property Id="ARPSYSTEMCOMPONENT" Value="1" /&gt; &lt;Feature Id="DefaultFeature" Level="1"&gt; &lt;ComponentRef Id="ApplicationFiles" /&gt; &lt;ComponentRef Id="ApplicationFiles32" /&gt; &lt;ComponentRef Id="ApplicationFiles64" /&gt; &lt;/Feature&gt; [...] </code></pre> <p>In msi log I have following:</p> <pre><code>Action 9:17:38: ProcessComponents. Updating component registration Action start 9:17:38: ProcessComponents. ProcessComponents: Action ended 9:17:38: ProcessComponents. Return value 1. MSI (s) (F8:58) [09:17:38:585]: Doing action: UnpublishFeatures MSI (s) (F8:58) [09:17:38:585]: Note: 1: 2205 2: 3: ActionText Action 9:17:38: UnpublishFeatures. Unpublishing Product Features Action start 9:17:38: UnpublishFeatures. UnpublishFeatures: Feature: Unpublishing Product Features Action ended 9:17:38: UnpublishFeatures. Return value 1. MSI (s) (F8:58) [09:17:38:586]: Doing action: StopServices MSI (s) (F8:58) [09:17:38:586]: Note: 1: 2205 2: 3: ActionText Action 9:17:38: StopServices. Stopping services Action start 9:17:38: StopServices. Action ended 9:17:38: StopServices. Return value 1. MSI (s) (F8:58) [09:17:38:587]: Doing action: DeleteServices MSI (s) (F8:58) [09:17:38:587]: Note: 1: 2205 2: 3: ActionText Action 9:17:38: DeleteServices. Deleting services Action start 9:17:38: DeleteServices. Action ended 9:17:38: DeleteServices. Return value 1. MSI (s) (F8:58) [09:17:38:588]: Doing action: RemoveFiles MSI (s) (F8:58) [09:17:38:588]: Note: 1: 2205 2: 3: ActionText Action 9:17:38: RemoveFiles. Removing files Action start 9:17:38: RemoveFiles. MSI (s) (F8:58) [09:17:38:589]: Note: 1: 2205 2: 3: RemoveFile MSI (s) (F8:58) [09:17:38:589]: Note: 1: 2205 2: 3: RemoveFile Action ended 9:17:38: RemoveFiles. Return value 0. </code></pre> <p><strong>UPDATE</strong> Thanks to Bob Arson I reread my msi log. I founded following:</p> <blockquote> <p>MSI (c) (A4:C8) [09:17:36:719]: Disallowing uninstallation of component: {12345678-1234-1234-1234-222222222222} since another client exists</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload