Wow!! Peter you are absolutely right. This solved my issue. It was the sequencing issue.
Thanks a ton. Arun -----Original Message----- From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] Sent: Thursday, September 22, 2011 8:58 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Cumulative patch uninstall fails in specific scenario Can you open up the msi in Inst-Ed or orca or something similar, view patch1 with it and note the sequence number of the custom action in the install execute sequence. Then do the same for the second patch. Judging from the error message these two numbers will be different (presumably because of the additional custom action). If this is the case, you can explicitly set the sequence number in the second patch using the custom/@sequence attribute. Alternatively you might be able to move the additional custom action so that the sequence number of the first CA is not different in patch 2. -----Original Message----- From: Arun Kumar [mailto:arun_jku...@persistent.co.in] Sent: 22 September 2011 16:15 To: General discussion for Windows Installer XML toolset. Cc: Dipak Jejurkar; Girish Chandran Subject: [WiX-users] Cumulative patch uninstall fails in specific scenario Hi All, I have created two cumulative patches (say patch1 and patch2 where patch2 supersedes patch1) with an additional custom action in patch2. I defined custom actions in wix script file in following manner: Patch1: Contains custom action that runs only on patch un-installation and code in patch.wxs is as follows: <Binary Id='Utility' SourceFile='C:\windows\system32\notepad.exe'/> <CustomAction Id='Notepad1' BinaryKey='Utility' ExeCommand='' Impersonate='no' Execute='deferred' PatchUninstall='yes'/> And in InstallExecuteSequence specified in following manner: <Custom Action="Notepad1" Before="InstallFinalize"></Custom> Patch2: This is cumulative patch superseding patch1 and added one more custom action in addition to above custom action as follows: <CustomAction Id='Notepad2' BinaryKey='Utility' ExeCommand='' Impersonate='no' Execute='deferred'/> And in InstallExecuteSequence specified in following manner: <Custom Action="Notepad2" Before="InstallFinalize">(REMOVE = "ALL")</Custom> My issue here is un-installing patch2 from Add Remove Program throws an error saying: "The patch package is not permitted by software restriction policy." Also I observed logs and it shows that it failed at very beginning even before running any of the custom actions. Below is snippet from log file: XXXXXXXXXXLog startXXXXXXXXXXXXXXXXXX MSI (s) (D4:80) [13:51:54:577]: Note: 1: 2262 2: InstallExecuteSequence 3: -2147287038 MSI (s) (D4:80) [13:51:54:577]: Sequence number of a patch uninstall custom action should not change The patch package is not permitted by software restriction policy. C:\WINDOWS\Installer\61289ed.msi MSI (s) (D4:80) [13:51:54:593]: MainEngineThread is returning 1643 MSI (s) (D4:5C) [13:51:54:593]: No System Restore sequence number for this installation. MSI (s) (D4:5C) [13:51:54:593]: User policy value 'DisableRollback' is 0 MSI (s) (D4:5C) [13:51:54:593]: Machine policy value 'DisableRollback' is 0 MSI (s) (D4:5C) [13:51:54:593]: Incrementing counter to disable shutdown. Counter after increment: 0 MSI (s) (D4:5C) [13:51:54:593]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollba ck\Scripts 3: 2 MSI (s) (D4:5C) [13:51:54:593]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollba ck\Scripts 3: 2 MSI (s) (D4:5C) [13:51:54:593]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProg ress 3: 2 MSI (s) (D4:5C) [13:51:54:593]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProg ress 3: 2 MSI (s) (D4:5C) [13:51:54:593]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1 MSI (s) (D4:5C) [13:51:54:593]: Restoring environment variables MSI (c) (E8:E8) [13:51:54:608]: Note: 1: 2755 2: 1643 3: C:\WINDOWS\Installer\61289ed.msi DEBUG: Error 2755: Server returned unexpected error 1643 attempting to install package C:\WINDOWS\Installer\61289ed.msi. MSI (c) (E8:BC) [13:51:54:608]: Transforming table Binary. MSI (c) (E8:BC) [13:51:54:608]: Transforming table Binary. MSI (c) (E8:BC) [13:51:54:608]: Note: 1: 2262 2: Binary 3: -2147287038 The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2755. The arguments are: 1643, C:\WINDOWS\Installer\61289ed.msi, MSI (c) (E8:E8) [13:55:34:888]: Product: My Product Name -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2755. The arguments are: 1643, C:\WINDOWS\Installer\61289ed.msi, MSI (c) (E8:E8) [13:55:34:888]: Back from server. Return value: 1643 MSI (c) (E8:E8) [13:55:34:888]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1 MSI (c) (E8:E8) [13:55:34:888]: PROPERTY CHANGE: Deleting SECONDSEQUENCE property. Its current value is '1'. Action ended 13:55:34: ExecuteAction. Return value 3. MSI (c) (E8:E8) [13:55:34:888]: Doing action: FatalError Action 13:55:34: FatalError. Action start 13:55:34: FatalError. XXXXXXXXXXLog endXXXXXXXXXXXXXXXXXX Any help will be really great. Thanks, 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. ----------------------------------------------------------------------------- - All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ 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. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ 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. ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users