|
From: Brad C. <bk...@mu...> - 2004-10-22 17:06:25
|
I have created a service using py2exe and Python. I can register the service 'by hand' (it
self-registers), then use services control panel to start and stop the service.
Now, I'm using Wix to install the executable.
I have configured servicecontrol to start the service on installation, and stop the service after
installation.
However, during install the service itself does get installed, but msiexec hangs trying to start
the service, and eventually it says "timed out .. connecting to service control manager" (sorry
I don't recall the exact message).
If I cancel, the install is rolled back.
I changed my ServiceControl statement to remove the start="install" option. Now, install
finishes but during un-install, msiexec hangs if the service is running. If the service is not
running, the un-install works.
So it seems that servicecontrol is unable to start and stop my service, even though the
services control panel works correctly.
I have linked in wixca.wixlib
I would ask this on the MSI list, except that I think service control is handled by wixca. I have
not looked at the source yet.
My question is .. what does wixca look for to determine how to start and stop a service? Is it
looking at my service.exe, or is it just using the ServiceController API?
Does anyone have suggestions how I can debug this. I have full logs from msiexec, but they
don't really show anything useful.
Here's my wix fragment:
<Component Id="service" Guid="16F5225E-23A5-410E-9ADF-589D0F487C2F">
<File Id="service" Name="events~1.exe" LongName="eventservice.exe"
DiskId="1" src="dist\eventservice.exe" />
<ServiceControl Id="sercontrol" Name="ServiceControl" Start="install" Stop="both"
Remove="uninstall" />
<ServiceInstall Id="serinstall" Name="xyzserver"
DisplayName="XYZ Server" Type="ownProcess" Start="auto"
ErrorControl="normal" />
...
</Component>
--
Brad Clements, bk...@mu... (315)268-1000
http://www.murkworks.com (315)268-9812 Fax
http://www.wecanstopspam.org/ AOL-IM: BKClements
|