Wix 自定义用户界面,编辑控件中的默认文本未显示

标签 wix windows-installer wix3

我为 WIX 开发了一个自定义对话框。我需要为编辑控件设置默认值,到目前为止我得到了这个:

 <UI Id="DlgDbSettingsUi">
      <Dialog Id="DlgDbSettings" Width="370" Height="270">
        <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
        <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.InstallDirDlgBannerBitmap)" />
        <Control Type="Text" Id="lblHeader" Width="333" Height="17" X="8" Y="56">
          <Text>Por favor, especifique los siguientes datos requeridos para la configuración de.</Text>
        </Control>
        <Control Type="Text" Id="lblIp" Width="78" Height="17" X="11" Y="82">
          <Text>IP de base de datos:</Text>
        </Control>
        <Control Type="Edit" Id="txtIp" Width="190" Height="15" X="98" Y="82" Property="DATABASE_IP" />
        <Control Type="Text" Id="lblPort" Width="50" Height="17" X="11" Y="101">
          <Text>Puerto:</Text>
        </Control>
        <Control Type="Edit" Id="txtPort" Width="190" Height="15" X="98" Y="101" Property="DATABASE_PORT">
          <Text>1521</Text>
        </Control>
        <Control Type="Text" Id="lblInstancia" Width="50" Height="17" X="11" Y="120">
          <Text>Instancia:</Text>
        </Control>
        <Control Type="Edit" Id="txtInstancia" Width="190" Height="15" X="98" Y="120" Property="DATABASE_INSTANCE">
          <Text>DEFAULT_INSTANCE</Text>
        </Control>
        <Control Id="Next" Type="PushButton" ElevationShield="no" X="240" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUIOK)"/>
        <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)"/>
        <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
      </Dialog>
    </UI>

但是,当我运行安装时,我的自定义 View 显示空的编辑控件。将文本标签嵌套在控制编辑标签内是可行的方法吗?我做错了什么吗?

enter image description here

最佳答案

设置与每个编辑控件相关的属性的默认值。

关于Wix 自定义用户界面,编辑控件中的默认文本未显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43677415/

相关文章:

windows - Wix <MajorUpgrade> 在捆绑 VC 可再发行组件后无法正常工作

wix - 微星 : How a Service is stopped on uninstall during InstallValidate - could that work anyway?

wix - 如何更改 Wix 安装程序对话框中的文本?

installation - Visual Studio 安装项目是否适合复杂的设置?

xml - WiX 可以引用名称中带有句点的项目吗?

windows - 如何在不手动卸载旧版本的情况下升级应用程序的最新版本?

xml - 删除 WiX 中的 XML 元素

Wix 无法解析符号 "Icon"

installation - WiX 在 Windows 7 安装期间不会添加 HKLM 注册表设置

wix - SCCM 的 .msi 和 .exe 安装程序是否有任何要求?