的Bonjour,
我想自定义maintaninence类型对话框,即MaintainenceWelcomeDialog,MaintainenceTypeDialogs,这就是我所做的:
我将MaintainenceWelcomeDlg从wix源复制到我当前的目录中更改了
对话名称MymaintenanceWelcomeDlg在WixUI_InstallDIr中添加了一个对话框引用,使用light.exe将Dialogs链接到installer.msi但是它仍然显示上一个对话框,我所做的唯一更改是将位图添加到它。
安装UI序列如下所示:
<InstallUISequence>
<ShowDialog="MyMaintenanceWelcomeDlg"Before="MaintenanceWelcomeDlg"Overridable="yes">Installed AND NOT RESUME AND NOT Preselected AND NOT PATCH</Show>
</InstallUISequence>
的Merci。 并在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" />
但是,当我双击安装程序的图标时,它仍会显示默认对话框。
请帮助!!!。
艾玛
答案 0 :(得分: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>
这在我的安装程序中运行良好。试试这个,看它是否有效?