0

我虽然下面的代码应该跳过 SetupType 对话框。

 <Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog"
      Value="InstallDirDlg">LicenseAccepted = "1"</Publish>

      <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog"
      Value="LicenseAgreementDlg">1</Publish>
      <Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath"
      Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
      <Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction"
      Value="WixUIValidatePath" Order="2">NOT WIXUI_DONTVALIDATEPATH</Publish>
      <Publish Dialog="InstallDirDlg" Control="Next" Event="SpawnDialog"
      Value="InvalidDirDlg" Order="3">
        <![CDATA[NOT WIXUI_DONTVALIDATEPATH AND
WIXUI_INSTALLDIR_VALID<>"1"]]>
      </Publish>
      <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog"
      Value="VerifyReadyDlg" Order="4">
        WIXUI_DONTVALIDATEPATH OR
        WIXUI_INSTALLDIR_VALID="1"
      </Publish>
      <Publish Dialog="InstallDirDlg" Control="ChangeFolder"
      Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
      <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog"
      Value="BrowseDlg" Order="2">1</Publish>

      <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog"
      Value="InstallDirDlg" Order="1">NOT Installed</Publish>
      <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog"
      Value="MaintenanceTypeDlg" Order="2">Installed</Publish>

但是,当我构建它时,我仍然看到 SetupType 对话框,其中提供了安装典型、自定义等选项......

我不需要这个,只想在许可证接受页面之后转到安装目录页面的选项。

如何跳过 SetupType 页面

4

1 回答 1

1

使用另一个对话框集,例如 WixUI_Advanced 或 WixUI_InstallDir,而不是 WixUI_Mondo。有关详细信息,请参阅 WiX.chm 中的“使用内置的 WixUI 对话框集”。

于 2011-04-20T00:23:51.813 回答