I don't exactly understand the problem. I use the ServiceInstall and ServiceControl to install services and they are removed on uninstall (if I specified them) along with all the files. Why doesn't that work for you?
akash bhatia wrote: > Hi Rob, > > thanks for ur quick reply! > > i have checked for the bullets u marked at prob:- > 1. Duplicated GUID ... its not > 2. in verbose log its not uninstalling the component. > > here are few advancements that i have reach on new conclusion.. > now my application EXE is gettin removed. > > CAUSE:- earlier i was using adverised shortcut for it, then i just tried my > luck with non advertised and it worked perfectly. > > still not able to resolve my problem with service EXEs > > Am able to remove the service EXEs when i set attribute(KeyPath ="yes") in > component(service EXE file is a part of this component). but in this case as > expected, service is not gettin installed, but EXE are gettin removed from > the INSTALLLOCATION. > > if on other hand i set attribute(KeyPath ="yes")in File tag > andKeyPath ="no" for > the component , services are gettin installed but not getting removed nor > the services are removing. > Please let me a way out, or else i would be left alternate way of installing > services through c# custom action. Please help me a way out ..which is > recommended and according to the standards. > > Thanks, > Akash > On Thu, Jun 4, 2009 at 9:31 PM, Rob Mensching <r...@wixtoolset.org> wrote: > > >> The RemoveFile element is probably useless below (that is for removing >> files that are *not* described by your install). Take a look at a >> verbose log file and see if your Component is being uninstalled. My >> first bet is that some other product is holding on to it (or you've >> duplicated a GUID). >> >> akash bhatia wrote: >> >>> hi, >>> >>> i am facing a very weird situation here. >>> >>> i am installing 2 services during installation. >>> >>> also i am removing it during uninstall. but the weird thing is that >>> >> during >> >>> uninstall, services are not deleted and also respective EXEs also exists >>> >> in >> >>> the INSTALLLOCATION >>> >>> here s my code which i have used >>> >>> >>> <Component Id="comp_5" DiskId="1" Guid="MY GUID"> >>> >>> <File Id="file_TIC_5" Name="Service.exe" Checksum="yes" KeyPath="yes" >>> >> Source >> >>> ="D:\Service.exe"/> >>> >>> <RegistryKey Root="HKLM" Key="SOFTWARE\mySetup" > >>> >>> <RegistryValue Name="InstallDir" Type="string" Value="[INSTALLLOCATION]" >>> >> /> >> >>> </RegistryKey> >>> >>> <RemoveFile Id ="remove_file_5" Name ="Service.exe" On ="uninstall" /> >>> >>> <ServiceInstall Id ="Service" ErrorControl ="normal" Start ="demand" >>> >> Type=" >> >>> ownProcess" Name="My Integration Service" Account ="[DOMAIN]\[USERNAME]" >>> Password ="[PASSWORD]"/> >>> >>> <ServiceControl Remove ="uninstall" Stop ="uninstall" Id ="Service" >>> >> Name="My >> >>> Integration Service" Wait ="yes" /> >>> >>> </Component> >>> >>> please let me know where i am goin wrong. >>> >>> also with this i have one more EXE which is an application is also left >>> while uninstallation. In total all EXEs are left in the INSTALLLOCATION. >>> >>> >>> >>> Thanks, >>> >>> Akash >>> >>> >> ------------------------------------------------------------------------------ >> >>> OpenSolaris 2009.06 is a cutting edge operating system for enterprises >>> looking to deploy the next generation of Solaris that includes the latest >>> innovations from Sun and the OpenSource community. Download a copy and >>> enjoy capabilities such as Networking, Storage and Virtualization. >>> Go to: http://p.sf.net/sfu/opensolaris-get >>> _______________________________________________ >>> WiX-users mailing list >>> WiX-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wix-users >>> >>> >> ------------------------------------------------------------------------------ >> OpenSolaris 2009.06 is a cutting edge operating system for enterprises >> looking to deploy the next generation of Solaris that includes the latest >> innovations from Sun and the OpenSource community. Download a copy and >> enjoy capabilities such as Networking, Storage and Virtualization. >> Go to: http://p.sf.net/sfu/opensolaris-get >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users