Assuming this is the source of the problem, the Registry element provides the 
necessary functionality to remove a registry entry on uninstall (and a bunch of 
other capabilities).

--
John Merryweather Cooper
Build & Install Engineer -- ESA
Jack Henry & Associates, Inc.(r)
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com



-----Original Message-----
From: Phill Hogland [mailto:phogl...@rimage.com] 
Sent: Friday, September 6, 2013 9:12 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Service Uninstall not Removing Service

I am relatively new to Wix and have not used the Service Control functionality 
yet, but I have over the years created services and installed
them with setups created by another non-wix setup.   So from that
perspective, given your statement "but does not remove the service from the 
Services list", I would suggest the following.

The Service Control Manager maintains a list of services as described here:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682544(v=vs.85).aspx

Some windows services have a command line switch, which when executed creates 
these registry keys in a self-install process.  This method is not the 
recommended way to install a service, because when it is used the setup program 
does not know to remove these keys.

You may need to implement code to remove these registry entries, but you should 
use SCM functions and take control of the database lock (with 
LockServiceDatabase and UnlockServcieDatabase) rather than directly editing the 
registry without taking these steps.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682562(v=vs.85).aspx

I'm sorry I can't advise on the Wix implementation yet.
Phill



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Service-Uninstall-not-Removing-Service-tp7588797p7588807.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


------------------------------------------------------------------------------
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to