I can offer a workaround. Add a <Property> in the same fragment as the update 
you want to reference and then reference that property in your patch family. 
Alternatively, you can create a patch with no patch families if you are willing 
to include all the changes in the product.

This is something that we need to figure out a way to improve where entire 
fragments exist with nothing referencable by a normal reference. If you'd like 
to file a sourceforge bug we can look at finding a better solution.

-Peter

My team is hiring. Ask me about the open positions.


-----Original Message-----
From: Rob Mensching [mailto:r...@robmensching.com] 
Sent: Wednesday, December 02, 2009 9:31 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How to patch elements in InstallExecuteSequence table?

Did this ever get resolved?

On Fri, Nov 20, 2009 at 1:01 PM, Sharat Janapareddy < 
sharat.janapare...@microsoft.com> wrote:

> We made some changes to the MSI installer that was released this year 
> and we are releasing the SP soon. One of those changes include adding 
> support to uninstall the patches. For this, we modified some Custom 
> elements in InstallExecuteSequence table of the MSI generating WXS 
> file. (I am not sure if these are the same as CustomActions though!)
>
> Anyway, how do we specify in the Patch.wxs that these Custom elements 
> need to be patched?
>
> For instance, here's the change which says that we should not run this 
> action when uninstalling the patch - <Custom Action='_GetServiceState' 
> After='_SetADName'><![CDATA[Installed And REMOVE<>"ALL" And Not 
> MSIPATCHREMOVE ]]></Custom>
>
> And here's how I listed it in the Patch.wxs - <PatchFamily 
> Id="AgentPatchFamily" Version="1.0.0.1" Supersede="yes">
>  <!-- Nothing here as of now -->
>  <CustomActionRef Id="_GetServiceState "/> </PatchFamily>
>
> I have also tried this way -
> <Fragment>
>    <InstallExecuteSequence>
>      <Custom Action="_GetServiceState" After="_SetADName" />
>      <InstallServices Sequence="5800" />
>      <DeleteServices Sequence="2000" />
>    </InstallExecuteSequence>
> </Fragment>
>
> However in both the cases, when I generated the patch and applied it 
> to the release MSI through ORCA, I don't see this change at all! 
> Another similar issue is with InstallServices and DeleteServices 
> elements of the same InstallExecuteSequence table.
>
> Can someone tell me if this is the right way to do this?
>
> Thanks,
>
> Sharat Janapareddy
> ~ 40269
>
>
> ----------------------------------------------------------------------
> -------- Let Crystal Reports handle the reporting - Free Crystal 
> Reports 2008 30-Day trial. Simplify your report design, integration 
> and deployment - and focus on what you do best, core application 
> coding. Discover what's new with Crystal Reports now.  
> http://p.sf.net/sfu/bobj-july 
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


--
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience, a free event 
focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to