I am making progress in understanding the use of Lux/Nit.  When I create a
tests which read my custom table, and evaluate a single value property or an
Expression element I have success (or failure if desired <Smile/>), but I am
having difficulty using the Multi-value pattern.

In my CA under test, I pass a number of values to WcaWriteStringToCaData or
WcaWriteIntegerToCaData.  I assume that it is using a default separator,
which in the wix code appears to be defined as const WCHAR
MAGIC_MULTISZ_DELIM = 128.  In my CAut, I use the state of 
WIXLUX_RUNNING_MUTATION, to call, when unit testing:
WcaSetProperty(pwzExecuteCustomActionId, pwzCustomActionData);
rather than:  
WcaDoDeferredAction(pwzExecuteCustomActionId, pwzCustomActionData,  COST_);
and avoid the failure of the DoAction on the deferred CA.

If I create a Multi-value unit test like this:
      <lux:UnitTest Id="Test1" CustomAction="MyCAfunc" Property="MyCAProp"
ValueSeparator="€" >
        <lux:UnitTest Index="0" Value="601"/> 
        ....other <lux:UnitTest Index="1" Value="€stuff"/>

I get error LGHT0311: A string was provided with characters that are not
available in the specified code page '1252' Either change these characters
... or update the databases's code page...

The character shown above is Alt+128.  

I have tried changing the Codepage for the Product with no impact on the
error.  If I change the character to '?' or ';', then the Test target
compiles and runs Nit, but the unit test fails and reports "expected '601'
but actual value was '601?another value?another value?etc.

Any ideas on what I am doing wrong?  I have been studying the verbose log
and wix code and am missing what it takes to get past this issue.

Thanks for the assistance!






--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Lux-Multi-value-Unit-Test-tp7599206.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to