Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WiX安装程序浏览对话框不更新文本字段_Wix_Installation - Fatal编程技术网

WiX安装程序浏览对话框不更新文本字段

WiX安装程序浏览对话框不更新文本字段,wix,installation,Wix,Installation,我的WiX安装程序中有以下两个控件,它们在大多数情况下都能正确呈现和工作: <Control Id="LogPathEdit" Type="Edit" X="134" Y="71" Width="130" Height="15" Property="LOGPATH" Text="[LOGPATH]"> <Condition Action="hide"><![CDATA[&Server<>3]

我的WiX安装程序中有以下两个控件,它们在大多数情况下都能正确呈现和工作:

            <Control Id="LogPathEdit" Type="Edit" X="134" Y="71" Width="130" Height="15" Property="LOGPATH" Text="[LOGPATH]">
                <Condition Action="hide"><![CDATA[&Server<>3]]></Condition>
                <Condition Action="show"><![CDATA[&Server=3]]></Condition>
            </Control>
            <Control Id="btnDirBrowse" Type="PushButton" Width="56" Height="17" X="268" Y="70" Text="Browse..." >
                <Condition Action="hide"><![CDATA[&Server<>3]]></Condition>
                <Condition Action="show"><![CDATA[&Server=3]]></Condition>
              <Publish Property="_BrowseProperty" Value="LOGPATH" Order="1">1</Publish>
              <Publish Event="SpawnDialog" Value="BrowseDlg" Order="2">1</Publish>
            </Control>
但是,如果在浏览目录之前编辑LogPathEdit文本框,则不会使用从“浏览目录”对话框中选择的值更新该文本框。如果我只是点击浏览。。。按钮并选择一个目录,文本字段将得到更新并正常工作

我已经看过这两个链接,但它们并不能解决我的问题:


将类型从Edit更改为LogPathEdit解决了此问题。这是新的一行:

            <Control Id="LogPathEdit" Type="PathEdit" X="134" Y="71" Width="130" Height="15" Property="LOGPATH" Text="[LOGPATH]">