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\Rollback\Scripts 3: 2 MSI (s) (D4:5C) [13:51:54:593]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 MSI (s) (D4:5C) [13:51:54:593]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2 MSI (s) (D4:5C) [13:51:54:593]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 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