如何在 WIX 工具集中的 ProgressBar 之后添加新的自定义对话框/窗口?

问题描述

在将所有组件安装到 ProgressBar 自定义对话框/窗口后,我尝试创建另一个自定义对话框/窗口。

我有 ProgressBar代码

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <Fragment>
    <UI Id="ProgressDialogUI">

      <Dialog Id="ProgressDialog" Width="400" Height="300" Title="[ProductName]" Modeless="yes">

        <Control Id="background" Type="Bitmap" Text="bgPic" Height="300" Width="400" X="0" Y="0" TabSkip="no" />

        <Control Id="introText"  Type="Text" X="10" Y="15" Width="380" Height="100" Nowrap="no" RightAligned="no" Transparent="yes" Text="{\TahomaHeader}Installation in progress" />
        <Control Id="BottomLineHeader" Type="Line" X="0" Y="65" Width="400" Height="1" />
        

        <Control Id="waitText" X="85" Y="100" Nowrap="no" RightAligned="no" Transparent="yes" Type="Text" Width="250" Height="100" Text="{\Tahomanormal}Please wait while [ProductName] is installed. Click on the Cancel button to exit." />

        <Control Id="progresstext" Type="Text" X="10" Y="100" Width="250" Height="32" Nowrap="no">
          <Subscribe Event="ActionData" Attribute="Text" />
        </Control>

        <Control Id="installProgressBar" Type="ProgressBar" X="25" Y="150" Width="350" Height="20" >
          <Subscribe Event="SetProgress" Attribute="Progress" />
        </Control>


        <Control Id="cancelButton" Type="PushButton" Text="[Cancel]" Height="40" Width="144" X="135" Y="245" Cancel="yes" TabSkip="no">
          <Publish Event="EndDialog" Value="Exit" />
        </Control>

      </Dialog>
      
      
      <DialogRef Id="InstallationComplete"/>  
  
    </UI>
  </Fragment>
</Wix>

我将引用 <DialogRef Id="InstallationComplete"/> 放在其他页面中,但最终安装程序没有进入最终的自定义对话框/窗口。

我想在安装程序中添加一个我想写的最后一页:安装完成。但 ProgressBar 页面不会进入最终窗口。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)