I worked around this issue by having a separate custom acction to encode the 
property values to remove/escape ;

The basic way it works is you pass the _names_ of the properties you want to 
encode, separated by semi-colons.  Since semi-colon cannot be used as an 
identifier it cannot be part of a property name.  My EncodeProperties custom 
action then gets the value of each property in turn and escapes out the 
semi-colons from the value by replacing them with "\x3b", which is C style 
escaping (I think), it also escapes "\" with "\\".  It (obviously) sets the 
property to the escaped value.

Then in my (original) custom action I can set its data separated with 
semi-colons and unescape them as needed.

I hope that's clear.

> -----Original Message-----
> From: Nicolas Penin [mailto:n.pe...@happly.fr]
> Sent: Friday, 18 November 2011 3:28 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] Bug with Semi colon in Custom action data
> 
> Hi all,
> 
> I think this is a bug in wix :
> 
> 
> I have a variable containing a semi colon.
> 
> >From this variable and many others, I build another variable that I use as
> custom action data.
> 
> Unfortunately, the custom action data is cut because of the semi-colon. If I
> replace the semi-colon by a comma, it works perfectly.
> 
> Is there any work around against this issue ?
> 
> Regards,
> Nicolas Penin
> 
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security threats,
> fraudulent activity, and more. Splunk takes this data and makes sense of it. 
> IT
> sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
#####################################################################################
Attention:
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from any system and destroy any copies.
#####################################################################################

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to