[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

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

2013-08-29 Thread Alain Forget
: 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 before

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

2013-08-29 Thread John Ludlow
. -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 custom action during the install. During uninstall, I want

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

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

2013-08-29 Thread nkshirsagar
Hi John, I'm doing it this way as of now .. InstallExecuteSequence Custom Action=RunInstallScript After=InstallFiles NOT Installed/Custom /InstallExecuteSequence InstallExecuteSequence Custom Action='BeforeUninstall' Before='InstallValidate'Installed AND (NOT

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 nkshirsa...@gmail.com wrote: Hi John, I'm doing it this way as of now .. InstallExecuteSequence Custom Action=RunInstallScript

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:

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)

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

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

2013-08-29 Thread John Cooper
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 ServiceControl element

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

2010-04-01 Thread Viv Coco
To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] stop the service before uninstall Forgot to mention: as my application is started by the service it runs in the service context which means they both don't run in the context of the current user, but as SYSTEM. Also

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

2010-03-31 Thread Viv Coco
. Subject: Re: [WiX-users] stop the service before uninstall Hi guys, I really don't want to be pushy but I need to find a solution for this: besides my application I also install a service that is babysitting my application, eg: restarts it when it crashes or whatever. When the product

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

2010-03-31 Thread Wilson, Phil
action to delete the stop monitoring registry item. Phil Wilson -Original Message- From: Viv Coco [mailto:vcotirl...@hotmail.com] Sent: Wednesday, March 31, 2010 3:34 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] stop the service before uninstall

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

2010-03-30 Thread Viv Coco
. Later on (after files have been installed/replaced) there's a StartServices action. Phil Wilson -Original Message- From: Viv coco [mailto:vcotirl...@hotmail.com] Sent: Friday, March 26, 2010 2:12 AM To: WiX Subject: [WiX-users] stop the service before uninstall Hi, My

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

2010-03-30 Thread Nick Ramirez
When, during the uninstall process, are you getting the error? Is it happening during the RemoveFiles action? If so, you might try adding the Wait=yes attribute to your ServiceControl so that it waits for it to stop the service before moving on to remove files. It may be that the SCM is taking

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

2010-03-30 Thread Viv Coco
discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] stop the service before uninstall Hi guys, I really don't want to be pushy but I need to find a solution for this: besides my application I also install a service that is babysitting my application, eg: restarts it when

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

2010-03-30 Thread Wilson, Phil
...@hotmail.com] Sent: Tuesday, March 30, 2010 3:08 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] stop the service before uninstall Hi guys, I really don't want to be pushy but I need to find a solution for this: besides my application I also install a service

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

2010-03-29 Thread Viv Coco
[mailto:vcotirl...@hotmail.com] Sent: Friday, March 26, 2010 2:12 AM To: WiX Subject: [WiX-users] stop the service before uninstall Hi, My installer besides my application installs also a service which is the babysitter for my application, eg takes care to restart my application if it crashes

[WiX-users] stop the service before uninstall

2010-03-26 Thread Viv coco
Hi, My installer besides my application installs also a service which is the babysitter for my application, eg takes care to restart my application if it crashes. When I want to uninstall everything I get the error message: The setup must update files or services that cannot be updated

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

2010-03-26 Thread Wilson, Phil
[mailto:vcotirl...@hotmail.com] Sent: Friday, March 26, 2010 2:12 AM To: WiX Subject: [WiX-users] stop the service before uninstall Hi, My installer besides my application installs also a service which is the babysitter for my application, eg takes care to restart my application