Hi Peter, as per your suggestion I tried to schedule the custom action twice but that also does not work. Even scheduling same custom action twice throws compilation error.
-----Original Message----- From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] Sent: Friday, September 16, 2011 2:12 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Patch Custom Action not invoked onmain productuninstall I'm not sure about this but reading the MSDN page on uninstall custom actions again, I do wonder if they are supposed to run *only* when uninstalling a patch. It certainly doesn't contradict this idea, although it is a little unexpected. If that's the case, then you'd need to schedule the action twice - once on patch uninstall and once on product removal. -----Original Message----- From: Arun Kumar [mailto:arun_jku...@persistent.co.in] Sent: 16 September 2011 07:20 To: General discussion for Windows Installer XML toolset.; David Watson Subject: Re: [WiX-users] Patch Custom Action not invoked onmain productuninstall Can somebody light on it. -----Original Message----- From: Arun Kumar Sent: Thursday, September 15, 2011 1:02 PM To: General discussion for Windows Installer XML toolset.; dwat...@sdl.com Cc: Arun Kumar Subject: RE: [WiX-users] Patch Custom Action not invoked on main productuninstall Can somebody help me out with the issue, please? Regards, Arun -----Original Message----- From: Arun Kumar Sent: Wednesday, September 14, 2011 5:59 PM To: General discussion for Windows Installer XML toolset.; dwat...@sdl.com Cc: Arun Kumar Subject: RE: [WiX-users] Patch Custom Action not invoked on main productuninstall Hi David, I specified custom action in WIX file in this manner: <CustomAction Id='Notepad1' BinaryKey='IqtUtility' ExeCommand='' Impersonate='no' Execute='deferred' PatchUninstall='yes'/> <InstallExecuteSequence> <Custom Action="Notepad1" Before="InstallFinalize">(Installed) AND (NOT PATCH) AND (REMOVE="") AND (NOT EXECUTEMODE~<<"N")</Custom> </InstallExecuteSequence> Also tried various alternatives like: <CustomAction Id='Notepad1' BinaryKey='IqtUtility' ExeCommand='' Impersonate='no' Execute='deferred'/> <Custom Action="Notepad1" Before="InstallFinalize"></Custom> <Custom Action="Notepad1" Before="InstallFinalize">1</Custom> <Custom Action="Notepad1" Before="InstallFinalize">NOT PATCH</Custom> <Custom Action="Notepad1" Before="InstallFinalize">REMOVE=ALL</Custom> And few more, but in all above cases uninstalling main product does not execute custom action from MSP. However uninstalling MSP alone (ie main product not uninstalled) invokes this custom action. Let me know if need more info. Regards, Arun -----Original Message----- From: David Watson [mailto:dwat...@sdl.com] Sent: Wednesday, September 14, 2011 5:22 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Patch Custom Action not invoked on main productuninstall What is your failing condition? -----Original Message----- From: Arun Kumar [mailto:arun_jku...@persistent.co.in] Sent: 14 September 2011 06:35 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Patch Custom Action not invoked on main productuninstall Hello All Again, Any update on below problem? Regards, Arun From: Arun Kumar Sent: Tuesday, September 13, 2011 4:38 PM To: General discussion for Windows Installer XML toolset. Cc: Arun Kumar Subject: Patch Custom Action not invoked on main product uninstall Hi All, I have created an MSP that contains new custom action that is not present in main product. When I uninstall my patch from Add Remove Programs. New custom action executes without any problem. But when I install patch over main product and directly uninstall main product from Add Remove Programs, my new custom action does not execute. Log shows that condition evaluates to false for this new custom action. But I have tried many conditions even tried always true condition as well. That too didn't work. Any help on this please? Note: I have attached log file when I uninstall main product (ie log for main + patch). "notepad1" is the name of my new custom action in the log. Regards, Arun DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. ----------------------------------------------------------------------------- - BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ----------------------------------------------------------------------------- - BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. ----------------------------------------------------------------------------- - BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users