首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >WIX模板编辑控件

WIX模板编辑控件
EN

Stack Overflow用户
提问于 2015-07-29 18:11:07
回答 1查看 463关注 0票数 0

我正在尝试创建一个自定义的安装程序设置,使用wix-template。一切正常,除了在自定义对话框中使用“编辑”控件。

下面是对话框文件的代码:

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI Id="InstallDlg_UI" >
<TextStyle Id="Tahoma_Regular" FaceName="Tahoma" Size="8" />
<Property Id="DefaultUIFont" Value="Tahoma_Regular" />
<Property Id="TEST" Value="test" Secure="yes"/>
<Dialog Id="InstallDlg" Width="320" Height="180" NoMinimize="yes" Title="RC Proxy Service" >
    <Control Id="CRMServerTxt" Type="Text" Width="80" Height="17" X="5" Y="5" Text="CRM-Server:"/>
    <Control Id="CRM" Type="Edit" Width="100" Height="17" X ="90" Y="5" Indirect="yes" Property="TEST"/>
    <Control Id="SQLServerTxt" Type="Text" Width="80" Height="17" X="5" Y="25" Text="SQL-Server:" />
    <Control Id="Install" Type="PushButton" X="150" Y="155" Width="80" Height="17" Text="Install"  />
    <Control Id="Cancel" Type="PushButton" X="235" Y="155" Width="80" Height="17" Text="Cancel"/>
  </Dialog>

  <InstallUISequence>
    <Show Dialog="InstallDlg" Before="ExecuteAction"/>
  </InstallUISequence>
</UI>

这是引用该对话框的product.wxs文件。

代码语言:javascript
复制
 <?xml version="1.0" encoding="UTF-8"?>
    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <Product Id="*" Name="TestInstaller" Language="1033" Version="1.0.0.0"   Manufacturer="test" UpgradeCode="b5c70750-4fdb-4ff1-8e0f-0bb8bcd47d9e">
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
    <MajorUpgrade DowngradeErrorMessage="A newer version of TestInstaller is already installed." />
    <MediaTemplate />

    <Feature Id="ProductFeature" Title="TestSetup" Level="1">
      <ComponentGroupRef Id="ProductComponents" />
    </Feature>
    <UIRef Id="InstallDlg_UI"/>
    </Product>
  <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLFOLDER" Name="TestSetup" />
      </Directory>
    </Directory>
  </Fragment>

  <Fragment>
    <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">      
      <Component>
        <File Source="$(var.SetupSample.TargetPath)" />
      </Component>    
    </ComponentGroup>
  </Fragment>
</Wix>

当我尝试执行msi文件时,总是收到错误代码2228。如果没有“编辑”控件,一切都会正常工作。

我正在使用Visual Studio2013和Wix-Toolset v3.9 R2。

有人有什么想法吗?

谢谢Andree

EN

回答 1

Stack Overflow用户

发布于 2015-07-30 17:08:57

在我看来问题已经解决了。我没有添加设置所需的基本对话框。添加进度和完成对话框后,一切正常。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31697459

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档