Installation 自定义MaintenanceTypeDialog-未成功

Installation 自定义MaintenanceTypeDialog-未成功,installation,wix,windows-installer,wix3.5,Installation,Wix,Windows Installer,Wix3.5,你好 我想定制Maintenance类型对话框,即Maintenance Welcomedialog、Maintenance类型对话框,我就是这么做的: 我将MaintenanceWelcomedLG从wix源复制到当前目录,更改了 MymaintenanceWelcomeDlg的对话框名称在WixUI_InstallDIr中添加了一个对话框引用。请使用light.exe将对话框链接到installer.msi。尽管它仍然显示上一个对话框,但我所做的唯一更改是向其添加位图 安装UI序列如下所示:

你好

我想定制Maintenance类型对话框,即Maintenance Welcomedialog、Maintenance类型对话框,我就是这么做的:

我将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_安装目录中

        <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" />
1
1.
1.
1.
但是,当我双击安装程序的图标时,它仍然显示默认对话框

请帮忙

艾玛

我在用这个:

<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>

未安装
已安装和(恢复或预选)
已安装,未恢复,未预选

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

您是否在不重命名的情况下尝试过它?WiX应该在源代码中找到您更新的对话框,然后忽略它自己的版本。它在您这边有效吗,我的源代码位于C:\sourcecodewix-b04db67458\WiX\u b04db67458\src\ext\UIExtension\wixlib,我所做的是-从创建msi的当前目录中删除MyMaintenanceWelcomeDlg和MyMaintenanceTypeDlg,并在上述位置修改原始MaintenanceWelcomeDlg和MaintenanceTypeDlg,但我不需要在环境变量中添加源路径。不幸的是,我现在无法检查。不,我的意思是你可以在.wsx文件中使用/包含你自己的MaintenanceWelcomeDlg副本,但你不会重命名副本,而是保留名称不变。WiX不需要它的源代码来编译,因此它不使用它;它使用预编译的.wsx文件。请参见下面的内容,并尝试修改原始源代码,使其看起来与所描述的一样,然后将MaintenanceWelcomeDlg替换为MyMaintenanceTypeDlg。