Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/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

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
User interface 如何向安装程序添加两个许可协议?_User Interface_Wix_Installation - Fatal编程技术网

User interface 如何向安装程序添加两个许可协议?

User interface 如何向安装程序添加两个许可协议?,user-interface,wix,installation,User Interface,Wix,Installation,我是WiX新手,我一直在使用WiX为我们的应用程序创建安装程序。我让它正确地安装了大多数应用程序和依赖项,但目前它没有任何UI 我想添加一个简单的向导界面,我已经阅读了有关最小配置和其他的内容,但是我有一个稍微不寻常的要求,我需要两个不同的许可证样式协议。第一个许可协议是标准许可协议,第二个协议涉及政府出口限制 我一直在搜索有关如何在WiX中设置许可协议的信息,但我不确定如何添加两个单独的屏幕,用户必须在其中同意继续?您能解释一下如何添加两个.RTF文件作为许可协议向导页面吗?除此之外,我不需要

我是WiX新手,我一直在使用WiX为我们的应用程序创建安装程序。我让它正确地安装了大多数应用程序和依赖项,但目前它没有任何UI

我想添加一个简单的向导界面,我已经阅读了有关最小配置和其他的内容,但是我有一个稍微不寻常的要求,我需要两个不同的许可证样式协议。第一个许可协议是标准许可协议,第二个协议涉及政府出口限制


我一直在搜索有关如何在WiX中设置许可协议的信息,但我不确定如何添加两个单独的屏幕,用户必须在其中同意继续?您能解释一下如何添加两个.RTF文件作为许可协议向导页面吗?除此之外,我不需要复杂的UI,没有可选功能等。

我们所做的是下载然后复制现有的许可证对话框并对其进行修改(我们需要一个发行说明对话框,所以我们关闭了大多数控件)

然后,我们复制并修改了WixMinimalUI集以包含该对话框。下面是我们的“发行说明”对话框的一个示例,您可能希望取消注释已注释掉的控件并处理它们的用法。此外,我们在它自己的项目中创建了它,以便其他安装程序可以使用它,我们添加了一个预处理器变量releaseNotesRtf,然后可以从其他项目中设置该变量,该变量是第二个rtf文档的路径

<Fragment>
<UI>
  <Dialog Id="ReleaseNotesDlg" Width="370" Height="270" Title="!(loc.LicenseAgreementDlg_Title)">
    <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)" />
    <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
    <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
    <!--<Control Id="Description" Type="Text" X="25" Y="23" Width="340" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.LicenseAgreementDlgDescription)" />-->
    <!--<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="!(loc.LicenseAgreementDlgTitle)" />-->
    <!--<Control Id="LicenseAcceptedCheckBox" Type="CheckBox" X="20" Y="207" Width="330" Height="18" CheckBoxValue="1" Property="LicenseAccepted" Text="!(loc.LicenseAgreementDlgLicenseAcceptedCheckBox)" />-->
    <Control Id="Print" Type="PushButton" X="112" Y="243" Width="56" Height="17" Text="!(loc.WixUIPrint)">
      <Publish Event="DoAction" Value="WixUIPrintEula">1</Publish>
    </Control>
    <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)" />
    <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)">
      <Publish Event="SpawnWaitDialog" Value="WaitForCostingDlg">!(wix.WixUICostingPopupOptOut) OR CostingComplete = 1</Publish>
      <!--<Condition Action="disable"><![CDATA[LicenseAccepted <> "1"]]></Condition>
      <Condition Action="enable">LicenseAccepted = "1"</Condition>-->
    </Control>
    <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
      <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
    </Control>
    <Control Id="LicenseText" Type="ScrollableText" X="20" Y="60" Width="330" Height="140" Sunken="yes" TabSkip="no">
      <Text SourceFile="!(wix.WixUIReleaseNotesRtf=$(var.releaseNotesRtf))" />
    </Control>
  </Dialog>
</UI>



  <UI Id="WixUI_MinimalReleaseNotes">
    <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
    <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
    <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" />

    <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
    <Property Id="WixUI_Mode" Value="Minimal" />

  <DialogRef Id="ErrorDlg" />
  <DialogRef Id="FatalError" />
  <DialogRef Id="FilesInUse" />
  <DialogRef Id="MsiRMFilesInUse" />
  <DialogRef Id="PrepareDlg" />
  <DialogRef Id="ProgressDlg" />
  <DialogRef Id="ResumeDlg" />
  <DialogRef Id="UserExit" />
  <DialogRef Id="ReleaseNotesDlg"/>

  <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>

  <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="LicenseAgreementDlg">NOT Installed</Publish>
  <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">Installed AND PATCH</Publish>

  <Publish Dialog="LicenseAgreementDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish>
  <Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="ReleaseNotesDlg">LicenseAccepted = "1"</Publish>

  <Publish Dialog="ReleaseNotesDlg" Control="Back" Event="NewDialog" Value="LicenseAgreementDlg">1</Publish>
    <Publish Dialog="ReleaseNotesDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>

  <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="ReleaseNotesDlg" Order="1">NOT Installed OR WixUI_InstallMode = "Change"</Publish>
  <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2">Installed AND NOT PATCH</Publish>
  <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="3">Installed AND PATCH</Publish>

  <Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg">1</Publish>

  <Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
  <Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
  <Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg">1</Publish>


  </UI>

  <UIRef Id="WixUI_Common" />
</Fragment>

1.
!(wix.WixUICostingPopupOptOut)或CostingComplete=1
1.
1.
未安装
安装并修补
1.
许可证接受=“1”
1.
1.
未安装或WixUI\u InstallMode=“更改”
已安装但未安装修补程序
安装并修补
1.
1.
1.
1.

谢谢,我将对此进行研究,您能解释一下这些UI集中的第一个对话框是如何调用的吗?我看到下一个按钮调用新的对话框,但是第一个呢?我真的不知道WiX如何决定首先调用哪个对话框,因为我们只是修改了现有的代码,我们不需要弄清楚,但是知道它会很有趣。