1

你好,

我想自定义维护类型对话框,即维护欢迎对话框,维护类型对话框,这就是我所做的:

我将MaintenanceWelcomeDlg从wix源复制到我的当前目录将
对话框名称更改为MymaintenanceWelcomeDlg在WixUI_InstallDIr中添加了一个对话框引用使用light.exe将对话框链接到installer.msi但是它仍然显示上一个对话框,唯一的我所做的更改是将位图添加到它。

安装 UI 序列如下所示:

 <InstallUISequence>
<ShowDialog="MyMaintenanceWelcomeDlg"Before="MaintenanceWelcomeDlg"Overridable="yes">Installed AND NOT RESUME AND NOT Preselected AND NOT PATCH</Show>
  </InstallUISequence>

谢谢。在 WixUI_InstallDir

        <Publish Dialog="MyMaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MyMaintenanceTypeDlg">1</Publish>

        <Publish Dialog="MyMaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="MyVerifyReadyDlg">1</Publish>
        <Publish Dialog="MyMaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="MyVerifyReadyDlg">1</Publish>
        <Publish Dialog="MyMaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MyMaintenanceWelcomeDlg">1</Publish>

        <Property Id="ARPNOMODIFY" Value="0" />

但是,当我双击安装程序的图标时,它仍然显示默认对话框。

请帮忙!!!。

艾玛

4

1 回答 1

0

我正在使用这个:

<InstallUISequence>
  <Show Dialog="WelcomeDlg" After="MigrateFeatureStates">NOT Installed</Show>
  <Show Dialog="ResumeDlg" After="WelcomeDlg">Installed AND (RESUME OR Preselected)</Show>
  <Show Dialog="MaintenanceWelcomeDlg" After="ResumeDlg">Installed AND NOT RESUME AND NOT Preselected</Show>
  <Show Dialog="ProgressDlg" After="MaintenanceWelcomeDlg" />
</InstallUISequence>

这在我的安装程序中效果很好。试试这个,看看它是否有效?

于 2012-07-03T08:08:02.930 回答