WIX UI属性更改不发布

时间:2012-10-07 22:10:32

标签: wix windows-installer wix3.5

我在WIXUI中有一个绑定到属性的编辑控件

<Property Id="WIXUI_FILESHAREDIR">FILESHAREDIR</Property>

和UI

    <Control Id="FileSharePathGroup" Type="GroupBox" Height="89" Width="352" X="8" Y="96" Text="File Share"/>
    <Control Id="FileSharePathLabel" Type="Text" X="20" Y="114" Width="69" Height="13" Text="File Share Path"/>
    <Control Id="FileSharePathEdit" Type="PathEdit" X="20" Y="126" Width="250" Height="16" Property="WIXUI_FILESHAREDIR" Indirect="yes" />
    <Control Id="FileSharePathBrowse" Type="PushButton" X="280" Y="125" Width="56" Height="17" Text="Browse"/>

以及以下发布声明:

      <Publish Dialog="ConfigurationDlg" Control="Back" Event="NewDialog" Value="InstallDirDlg">1</Publish>
      <Publish Dialog="ConfigurationDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
      <Publish Dialog="ConfigurationDlg" Control="FileSharePathBrowse" Property="_BrowseProperty" Value="[WIXUI_FILESHAREDIR]" Order="1">1</Publish>
      <Publish Dialog="ConfigurationDlg" Control="FileSharePathBrowse" Event="SpawnDialog" Value="BrowseDlg" Order="2">1</Publish>

当我使用浏览按钮时,FILESHAREDIR属性最终会正确更新。当我手动输入文本编辑器并单击“下一步”时,它没有,并且FILESHAREDIR在安装时保留了不正确的默认值。

我错过了发布声明吗?

1 个答案:

答案 0 :(得分:0)

您需要使用Property @ Secure属性列出SecureCustomProperties property中的公共属性。