Bob -

So .. if I understand this correctly .. Windows Installer 4.5 supports
execution of custom actions on patch removal via the use of the Custom
Action Patch Uninstall Option (msidbCustomActionTypePatchUninstall) .. and
WiX CustomAction supports this as well via the use of the PatchUninstall
attribute.  However, XmlConfig, which is really a custom action and not a
standard action, does not have the ability yet to take advantage of the WI
4.5 patch removal feature.

I hope that makes sense .. I am still relatively new to WI and WiX.

Also .. I was able to both create a patch and a minor update that applies
XmlConfig updates.  The minor update would only do this if I put the new
XmlConfig components within an already installed feature .. I tried putting
them in a new feature, and they did not get applied.  The patch (msp) did
process them if they were in a new feature.  Oddly, when I ran the patch
(msp) thru msiexec, I got the "Change-Repair-Remove" option .. which I then
selected Change and was able to select the new feature, which contained the
new XmlConfigs.  When I ran the minor upgrade (msi) thru msiexec, I never
got the "Change-Repair-Remove" option.

Thanks,
- Troy


On Tue, Jun 2, 2009 at 8:11 AM, Bob Arnson <b...@joyofsetup.com> wrote:

> troy hostetter wrote:
> >         <util:XmlConfig
>  Id="XC__kCEnterprise.Search.web.config.delete.1"
> > File="[KCENTERPRISE.ROOT.WEBDIR]web.config" Action="delete"
> On="uninstall"
> >                 ElementPath="//configuration/appSettings" Node="element"
> > VerifyPath="add[...@key='SearchDefaultConfigSection'[\]]"
> >                 Sequence="20" />
> >
> > And they do not seem to be executing on uninstall.  Could this be a
> problem
> > with Custom Actions?
> >
>
> As Rob mentioned, until MSI 4.5, custom actions added in a patch
> couldn't be executed during patch uninstall. Without opting-in to that
> MSI 4.5 behavior, uninstalling a patch is a repair of the prior state of
> the product with no knowledge of custom actions the patch added.
>
> --
> sig://boB
> http://joyofsetup.com/
>
>
>
>
> ------------------------------------------------------------------------------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to