I met a problem while adding entered by user path to registry.
Here are important parts of wix code.
Property declaration:
<Property Id="PathProp">C:\</Property>
Directory declaration:
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="PathProp" Name="Name">
</Directory>
</Directory>
Registry block:
<RegistryKey Root="HKLM" Key="SOFTWARE\Path\To\Key" Action="createAndRemoveOnUninstall">
<RegistryValue Name="UserSetPath" Value="[PathProp]" Type="string" />
</RegistryKey>
I have the dialog which pulls PathProp from user and I want entered value be in registry. But I see the default value ("C:\"). Is it possible to register exactly what user entered?