Search code examples
wixuser-input

wix getting user input


Dialog.wxs

<UI>
<Dialog Id="UserRegistrationDlg" ... >
<Control Id="NameEdit" Type="Edit" X="45" Y="85" Width="220" Height="18" Property="NameValue" Text="{80}" />
</Dialog>
<UI>

In Product.wxs I created a property

<Property Id="NameValueProperty" Value="NameValue" />

Then, as I understood, I have to use [NameValueProperty] for getting value but id doesn't work ... What's wrong?


Solution

  • You generally want to use a Secure Custom Property in this situation. This is a property that is both Public (i.e. CAPS ) and marked as Secure A value is only required if you want there to be a default value.

    <Property Id="MYPROPERTY" Secure="yes" />