FYI, I was able to figure out how to include CustomActions in the patch. But 
the one thing that I don't see in the WIX documentation is how to patch 
Standard Actions.

Thanks,

Sharat Janapareddy
~ 40269

-----Original Message-----
From: Sharat Janapareddy [mailto:sharat.janapare...@microsoft.com] 
Sent: Friday, November 20, 2009 1:02 PM
To: General discussion for Windows Installer XML toolset.
Cc: Clive Eastwood; Anandha Ganesan
Subject: [WiX-users] How to patch elements in InstallExecuteSequence table?

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


------------------------------------------------------------------------------
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

Reply via email to