I have a service specified in a WiX 3.5 file. The file specifies the following <ServiceControl>
<ServiceControl Id="sc_KaazingServiceStart" Name="KaazingJMSv33x64Service" Stop="both" Remove="uninstall" Wait="yes" /> It used to have Start="install", but I needed to remove that to make starting the service optional based on user input (which works fine.) The problem is that it appears that unless you specify Start="install", the service will install just fine but the associated component will fail to uninstall when the product is uninstalled. This is regardless of whether the service is actually running when the uninstall is attempted (I've tried both ways.) I've seen variations of the above mentioned in notes to the list over the last couple years, but not specifically this case. Does anyone know if this is a known WiX bug, a known Windows Installer bug, or something else? There are no conditions specifically on the service component or file. Here's the snippet from the .wxs file: <Component Id="CMP_162" Guid="969C403D-B448-4BB5-89CE-ACC1CD5A8E79"> <File Id="KaazingJMSv33x64Service" Source="wix\Gateway\service\Service.exe" KeyPath="yes" ReadOnly="yes" /> <ServiceInstall Id="InstallKaazingService" Name="KaazingJMSv33x64Service" DisplayName="Kaazing WebSocket Gateway - JMS Edition 3.3" Description="The Kaazing WebSocket Gateway - JMS Edition 3.3 Gateway" Vital="yes" Start="auto" ErrorControl="normal" Type="ownProcess" /> <ServiceControl Id="sc_KaazingServiceStart" Name="KaazingJMSv33x64Service" Stop="both" Remove="uninstall" Wait="yes" /> </Component> And the section from the verbose uninstall log: MSI (s) (9C:24) [17:03:39:948]: Component: CMP_162; Installed: Local; Request: Absent; Action: Null There is no mention of the service in the StopServices or DeleteServices part of the log. Anybody have any idea how I can get around this? I cannot add Start="install" to the ServiceControl, as I mentioned. Thanks! Dave ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users