You can't use "\0" because the Windows Installer treats Properties as strings.  
The WiX toolset uses a "MAGIC_SZ_CHAR" or something like that to separate it's 
CustomActionData.

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Coill
Sent: Tuesday, March 13, 2007 12:58 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Trouble adding /0 (via [~] to a property

I am trying to send my deferred custom action, multiple strings separated by \0

I tried &#00, but for some reason that gave me 0x0A (new line).
I read online that [~] is the proper way to add \0, but this seems to create an 
entire string of \0 equal to the number of items in the string beyond it (+2).

For instance
        <CustomAction Id="myaction.SetProperty"
                      Return="check"
                      Property="myaction"
                      Value="[~]A"
Yeilds 3 0s
                      Value="[~]AB"
Yeilds 4 0s

Can someone point me to where this is documented or better yet explain how I 
would do something like
Value="foo\0bar\0baz\0"

Thanks,
- Matt

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to