Wix: If Define variable contain special character then Bad conditional string error
When define variable contain special character like @, - etc. and now this variable use in comparison condition then give "Bad conditional string" error. and this condition used in Publish new dialog in custom dialog.

sample code:

<!-- language: xml -->

    <?define Key="test@key"?>

    <Control Id="LicenseKey" Type="Edit" Password="yes" X="20" Y="139" Width="320" Height="15" Property="Keytext" />

    <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="Next">
         <Publish Event="SpawnDialog" Value="CheckKey" Order="2"><![CDATA[Keytext <> $(var.Key)]]></Publish>
    </Control>

so can any one tell me how to solved this error?
Wix: If Define variable contain special character then Bad conditional string error
===

When define variable contain special character like @, - etc. and now this variable use in comparison condition then give "Bad conditional string" error. and this condition used in Publish new dialog in custom dialog.

sample code:

<!-- language: xml -->

    <?define Key="test@key"?>

    <Control Id="LicenseKey" Type="Edit" Password="yes" X="20" Y="139" Width="320" Height="15" Property="Keytext" />

    <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="Next">
         <Publish Event="SpawnDialog" Value="CheckKey" Order="2"><![CDATA[Keytext <> $(var.Key)]]></Publish>
    </Control>

so can any one tell me how to solved this error?