Re: [WiX-users] How to prompt to terminate process on uninstall
Ok a follow up question, Where do I put the uninstall custom action at in the Wix file? My wix file doesnt contain any kind of remove / uninstall sections from what I can tell? -JEff From: Rob Mensching Sent: Thursday, October 26, 2006 1:02 PM To: Jeff MacDuff; wix-users@lists.sourceforge.net Subject: RE: [WiX-users] How to prompt to terminate process on uninstall wix\ src\ca\wixca\dll\CloseApps.cpp From: Jeff MacDuff Sent: Thursday, October 26, 2006 12:58 To: Rob Mensching; wix-users@lists.sourceforge.net Subject: RE: [WiX-users] How to prompt to terminate process on uninstall Ahh ok.. I understand. Can you tell me more about this CloseApps CA ? Is this an existing item I can just hook into? From: Rob Mensching Sent: Thursday, October 26, 2006 12:58 PM To: Jeff MacDuff; wix-users@lists.sourceforge.net Subject: RE: [WiX-users] How to prompt to terminate process on uninstall Youd have to use a CustomAction like CloseApps to kill off more than just those files that are held in use by a process with a visible window. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff MacDuff Sent: Thursday, October 26, 2006 12:53 To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to prompt to terminate process on uninstall What is the correct method in the WIX file to list the process names that should / need to be killed before uninstall occurs? What we are seeing is that if process A is running the MSI at uninstall time will uninstall all of the other files ( dlls / xmls / etc ) and then prompt the user to reboot. At reboot the process A is removed. The bug is that if the user chooses not to reboot.. and clicks on the process A systray icon this will cause process A to crash since its dependent files are now gone. How do I tell the MSI uninstall process to kill process A ? Thanks, Jeff - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to prompt to terminate process on uninstall
Hi Jeff. The custom needs be placed in the proper sequence, such as before RemoveAllFiles. WiX, or more accurately MSI, isnt organized towards stages of installation, but allows you to schedule events based on those stages. Joel Peterson [EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff MacDuff Sent: Monday, November 06, 2006 8:16 AM To: Rob Mensching; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] How to prompt to terminate process on uninstall Ok a follow up question, Where do I put the uninstall custom action at in the Wix file? My wix file doesnt contain any kind of remove / uninstall sections from what I can tell? -JEff From: Rob Mensching Sent: Thursday, October 26, 2006 1:02 PM To: Jeff MacDuff; wix-users@lists.sourceforge.net Subject: RE: [WiX-users] How to prompt to terminate process on uninstall wix\ src\ca\wixca\dll\CloseApps.cpp From: Jeff MacDuff Sent: Thursday, October 26, 2006 12:58 To: Rob Mensching; wix-users@lists.sourceforge.net Subject: RE: [WiX-users] How to prompt to terminate process on uninstall Ahh ok.. I understand. Can you tell me more about this CloseApps CA ? Is this an existing item I can just hook into? From: Rob Mensching Sent: Thursday, October 26, 2006 12:58 PM To: Jeff MacDuff; wix-users@lists.sourceforge.net Subject: RE: [WiX-users] How to prompt to terminate process on uninstall Youd have to use a CustomAction like CloseApps to kill off more than just those files that are held in use by a process with a visible window. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff MacDuff Sent: Thursday, October 26, 2006 12:53 To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to prompt to terminate process on uninstall What is the correct method in the WIX file to list the process names that should / need to be killed before uninstall occurs? What we are seeing is that if process A is running the MSI at uninstall time will uninstall all of the other files ( dlls / xmls / etc ) and then prompt the user to reboot. At reboot the process A is removed. The bug is that if the user chooses not to reboot.. and clicks on the process A systray icon this will cause process A to crash since its dependent files are now gone. How do I tell the MSI uninstall process to kill process A ? Thanks, Jeff - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to prompt to terminate process on uninstall
Well, since you know the name of the process, you do not need to handle with custom actions for this simple task, just use the kill-program shipped with windows. Try this out: CustomAction Id=StartUserExe.Run Impersonate=yes Return=asyncNoWait Directory=INSTALLDIR ExeCommand='[INSTALLDIR]User\Aldi.Ews.User.exe' TerminalServerAware=yes / CustomAction Id=StartUserExe.Kill Impersonate=yes Return=ignore Directory=WinDir ExeCommand='System32\kill.exe /F /IM Aldi.Ews.User.exe' TerminalServerAware=yes/ CustomAction Id=StartUserExe.TSKill Impersonate=yes Return=ignore Directory=WinDir ExeCommand='System32\tskill.exe /F /IM Aldi.Ews.User.exe' TerminalServerAware=yes/ CustomAction Id=StartUserExe.TaskKill Impersonate=yes Return=ignore Directory=WinDir ExeCommand='System32\taskkill.exe /F /IM Aldi.Ews.User.exe' TerminalServerAware=yes/ Greetings OF - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to prompt to terminate process on uninstall
Youd have to use a CustomAction like CloseApps to kill off more than just those files that are held in use by a process with a visible window. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff MacDuff Sent: Thursday, October 26, 2006 12:53 To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to prompt to terminate process on uninstall What is the correct method in the WIX file to list the process names that should / need to be killed before uninstall occurs? What we are seeing is that if process A is running the MSI at uninstall time will uninstall all of the other files ( dlls / xmls / etc ) and then prompt the user to reboot. At reboot the process A is removed. The bug is that if the user chooses not to reboot.. and clicks on the process A systray icon this will cause process A to crash since its dependent files are now gone. How do I tell the MSI uninstall process to kill process A ? Thanks, Jeff - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to prompt to terminate process on uninstall
Ahh ok.. I understand. Can you tell me more about this CloseApps CA ? Is this an existing item I can just hook into? From: Rob Mensching Sent: Thursday, October 26, 2006 12:58 PM To: Jeff MacDuff; wix-users@lists.sourceforge.net Subject: RE: [WiX-users] How to prompt to terminate process on uninstall Youd have to use a CustomAction like CloseApps to kill off more than just those files that are held in use by a process with a visible window. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff MacDuff Sent: Thursday, October 26, 2006 12:53 To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to prompt to terminate process on uninstall What is the correct method in the WIX file to list the process names that should / need to be killed before uninstall occurs? What we are seeing is that if process A is running the MSI at uninstall time will uninstall all of the other files ( dlls / xmls / etc ) and then prompt the user to reboot. At reboot the process A is removed. The bug is that if the user chooses not to reboot.. and clicks on the process A systray icon this will cause process A to crash since its dependent files are now gone. How do I tell the MSI uninstall process to kill process A ? Thanks, Jeff - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users