You theoretically only need to add it in the upgrade but if you put it in both
that will work before you ship. If you already shipped your product, changing
the target isn't really an option...
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joseph Valet
Sent: Saturday, November 17, 2007 2:10 AM
To: wix-users list
Subject: Re: [WiX-users] CustomAction in .msp MSI patch
I finally got it working.
My mistake was that I was trying to include the definition of the custom action
into the patch definition. One must in fact define his custom actions in the
base packages and then torch/pyro will detect the differences and include the
custom action into the patch if necessary.
Here is the code snipset that I am now using:
{{{
<?xml version='1.0' encoding='UTF-8'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Patch AllowRemoval='no'
Manufacturer='corp'
MoreInfoURL='http://www.dummy.com/'
DisplayName='prod'
Description='prod descr'
Classification='Update'>
<Media Id='5000' Cabinet='RTM.cab'>
<PatchBaseline Id='RTM'/>
</Media>
<PatchFamilyRef Id='UpdatePatchFamily' />
</Patch>
<Fragment>
<PatchFamily Id='UpdatePatchFamily' Version='2.0.0.35'>
<ComponentRef Id='SampleComponent'/>
<CustomActionRef Id='DoIt' />
<PropertyRef Id='MyProp' />
</PatchFamily>
</Fragment>
</Wix>
}}}
Best regards,
J.
________________________________
Découvrez la nouvelle génération des servives de Windows Live Cliquez
ici!<http://get.live.com>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users