0. Can you describe the contribution first?

1. You can put the Custom Action in pubca or create a new one if that is
more appropriate. I'd need to understand the goal to know best.

2. It depends on how you write the code. You can choose to fail if the
property isn't defined. The easiest way to enforce that the user sets the
property is to put a PropertyRef element in the Fragment that defines your
custom action.

3. A test would be nice. We have not been historically great about that, but
Bob did create nit (you can read about it in the WiX documenation).
However, I would say documentation for the custom action functionality is
even more important.
 On Wed, Dec 15, 2010 at 3:16 PM, Sean Farrow
<sean.far...@seanfarrow.co.uk>wrote:

>  Hi:
>
> I’m just signing a license agreement with ms to contribute code. I’ve
> written some code (that was needed in a project I’m involved in) that
> obtains the users profile type.
>
> Currently it consists of a property (currently it’s private, but this is
> changeable) as follows:
>
> <Fragment>
>
> <Property Id=”UserProfileType”/>
>
> </Fragment>
>
> I’ve then got a custom action written in c++ again currently in a project
> specific dll. Two queries:
>
> Firstly, which dll do most custom actions go in to, pubca orserverca?
>
> Secondly, if someone includes the custom action but not the property in the
> installation, what happens, I’m assuming the ca will ExitOnFailure if this
> logic is coded in, due to the fact that the property doesn’t exist. Is there
> a way to add the property if the ca is added to a .wxs file by the users?
>
> Also, whilst I think about it, do I need to write a test for the ca/wxs
> combination?
>
> Any help appreciated.
>
> Cheers
>
> Sean.
>
>
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> WiX-devs mailing list
> WiX-devs@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-devs
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
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-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to