Re: [WiX-users] stop a service before uninstall

2013-08-29 Thread John Cooper
jackhenry.com www.jackhenry.com -Original Message- From: Phil Wilson [mailto:phildgwil...@gmail.com] Sent: Thursday, August 29, 2013 12:12 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] stop a service before uninstall You can still use the WiX ServiceContr

Re: [WiX-users] stop a service before uninstall

2013-08-29 Thread Phil Wilson
You can still use the WiX ServiceControl element to stop the service at uninstall time. There's no requirement that the ServiceControl table refer to services that you're installing. The files-in-use logic will detect that the service is going to be stopped and will not show the files-in-use dialog

Re: [WiX-users] stop a service before uninstall

2013-08-29 Thread John Ludlow
Check the logs. That should tell you what REMOVE and REINSTALL are being set to, and when they are being set. Look for lines like this: MSI (s) (04:4C) [05:39:56:736]: Command Line: REMOVE=ALL CURRENTDIRECTORY=C:\Windows\system32 CLIENTUILEVEL=2 CLIENTPROCESSID=1768 or this: MSI (s) (64:48) [06:

Re: [WiX-users] stop a service before uninstall

2013-08-29 Thread nkshirsagar
I guess its OK for the message to POPup during repair because it restarts the service automatically. just wondering why I could do it this way, but not with REMOVE=ALL condition -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/stop-a-service-before

Re: [WiX-users] stop a service before uninstall

2013-08-29 Thread John Ludlow
Well, it wouldn't because the REINSTALL property is set during repair and you're conditioning on NOT REINSTALL. On 29 August 2013 14:19, nkshirsagar wrote: > Hi John, > > I'm doing it this way as of now .. > > > NOT > Installed > > > Installed > AND (NOT REINSTALL) >

Re: [WiX-users] stop a service before uninstall

2013-08-29 Thread nkshirsagar
Hi John, I'm doing it this way as of now .. NOT Installed Installed AND (NOT REINSTALL) The only problem is repair doesnt execute the uninstall script, so the filesinUse pops up during repair. Otherwise, I dont see it during uninstall because I guess my

Re: [WiX-users] stop a service before uninstall

2013-08-29 Thread nkshirsagar
Hi Alain, because I register the service through a vb script, and there's some other things the script does before registering it using CreateServiceForApplication and I dont want to make any changes to the script. Is there any way to either terminate the process before uninstall, or make sure t

Re: [WiX-users] stop a service before uninstall

2013-08-29 Thread John Ludlow
e before uninstall. > > -Original Message- > From: nkshirsagar [mailto:nkshirsa...@gmail.com] > Sent: Thursday, August 29, 2013 08:19 > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] stop a service before uninstall > > I install a windows service as a cu

Re: [WiX-users] stop a service before uninstall

2013-08-29 Thread Alain Forget
- From: nkshirsagar [mailto:nkshirsa...@gmail.com] Sent: Thursday, August 29, 2013 08:19 To: wix-users@lists.sourceforge.net Subject: [WiX-users] stop a service before uninstall I install a windows service as a custom action during the install. During uninstall, I want to remove this service

[WiX-users] stop a service before uninstall

2013-08-29 Thread nkshirsagar
I install a windows service as a custom action during the install. During uninstall, I want to remove this service before the filesinUse dialogbox pops up. My condition is REMOVE="ALL" for the uninstallation script to run, and I read on http://msdn.microsoft.com/en-us/library/windows/desktop/aa371