I've had problems in the past with a service not starting as expected
because of missing dependencies but never a problem uninstalling the
service.
I don't see anything obviously wrong here. I checked the ServiceInstall
and ServiceControl documentation to double check syntax and everything
looked correct. I see the ServiceControl documentation for Remove says "
Specifies whether the service should be removed by the DeleteServices
action on install, uninstall or both." Perhaps the DeleteServices action
is not getting scheduled or is not executing due to a condition or
something similar? I wouldn't expect this but it's worth looking at a
verbose log to determine what is happening with the DeleteServices
action. We can troubleshoot further from there.
--
Edwin G. Castro
On 9/5/13 10:29 AM, Greg Edwards wrote:
> WIX Users,
>
> I have created a simple windows service installer with the following
> configuration:
>
> <Component Id="C__082DF38F8BE3C98E690ECA979BEBD98F"
> Guid="{980F0B9A-9F25-B729-7225-F24075392C80}">
> <File Id="_082DF38F8BE3C98E690ECA979BEBD98F" Name="AltusService.exe"
> KeyPath="yes" ShortName="ALTUSC1.EXE" DiskId="1"
> Source="$(var.AltusService)\Service.exe" />
> <ServiceInstall Id="ServiceInstaller" Type="ownProcess" Vital="yes"
> Name="AltusService" DisplayName="Altus Service" Description="Altus Service"
> Start="auto" Account="LocalSystem" ErrorControl="ignore" Interactive="no" />
> <ServiceControl Id="StartService" Start="install" Stop="both"
> Remove="uninstall" Name="AltusService" Wait="yes" />
> </Component>
>
> It installs correctly and starts the service as expected.
>
> When I uninstall the service it stops it correctly, but it does not remove
> the service from the service list.
>
> Is there something that I am missing in my configuration that may be
> hindering the service from being removed?
>
> Thank you.
> -Greg
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users