使用WIX的InstallDir UI扩展时,有条件地选择两个退出对话框
发布时间:2020-12-14 05:30:45 所属栏目:Windows 来源:网络整理
导读:我想基于VersionMsi属性的版本有两个不同的退出对话框,以便利用退出对话框的超链接控件.更多信息 here. 我正在为我的安装过程使用WIX的InstallDir_UI扩展的自定义版本.由于我想选择支持超链接控件(如果可用),我创建了两个不同的对话框: Dialog Id="NonHyper
我想基于VersionMsi属性的版本有两个不同的退出对话框,以便利用退出对话框的超链接控件.更多信息
here.
我正在为我的安装过程使用WIX的InstallDir_UI扩展的自定义版本.由于我想选择支持超链接控件(如果可用),我创建了两个不同的对话框: <Dialog Id="NonHyperlinkExit" Width="370" Height="270" Title="!(loc.ExitDialog_Title)"> <Control Id="Finish" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Cancel="yes" Text="!(loc.WixUIFinish)" /> ... <Control Id="HowToLink" Type="Text" X="135" Y="175" Width="220" Height="10" Transparent="yes" NoPrefix="yes" Text="!(loc.InfoUrl)" /> ... </Dialog> <Dialog Id="HyperlinkExit" Width="370" Height="270" Title="!(loc.ExitDialog_Title)"> <Control Id="Finish" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Cancel="yes" Text="!(loc.WixUIFinish)" /> ... <Control Id="HowToHyperLink" Type="Hyperlink" X="135" Y="175" Width="220" Height="10" Text="!(loc.InfoLink)" /> ... </Dialog> 然后,我修改了UI发布语句,以支持这些对话框,如下所示: <Publish Dialog="NonHyperlinkExit" Control="Finish" Event="EndDialog" Value="Return" Order="998"><![CDATA[VersionMsi < "5.0"]]></Publish> <Publish Dialog="HyperlinkExit" Control="Finish" Event="EndDialog" Value="Return" Order="999"><![CDATA[VersionMsi >= "5.0"]]></Publish> 运行此时,我收到以下错误: error LGHT0204: ICE20: Exit dialog/action not found in 'AdminUISequence' Sequence Table. error LGHT0204: ICE82: This action HyperlinkExit has duplicate sequence number -1 in the table InstallUISequence 所以我试图改为修改InstallUISequence,但没什么帮助.试过这个: <InstallUISequence> ... <Show Dialog="NonHyperlinkExit" Before="HyperlinkExit"><![CDATA[VersionMsi < "5.0"]]></Show> <Show Dialog="HyperlinkExit" OnExit="success"><![CDATA[VersionMsi >= "5.0"]]></Show> </InstallUISequence> 但这只会给我以下错误: error LGHT0177: The InstallUISequence table contains an action 'NonHyperlinkExit' that is scheduled to come before or after action 'HyperlinkExit',which is a special action which only occurs when the installer terminates. These special actions can be identified by their negative sequence numbers. Please schedule the action 'NonHyperlinkExit' to come before or after a different action. 任何有关如何创建条件退出对话框的想法将不胜感激. 解决方法
MSI每个州仅支持一个退出对话框(例如,成功).您可以使用显示相应对话框的自定义操作.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- windows – 可以将特定文件移动到磁盘的开头?
- Symfony的最佳分步教程(我在Windows上运行PHP)
- active-directory – 当您授予用户管理员访问权限时,SBS 20
- 为什么汇编语言(如Windows,Linux)有所不同?
- Windows安装程序 – 启动条件以检测Office 2010应用程序
- 如何在Windows上的Firefox中停止Flash内容闪耀jQuery UI对话
- Windows – 如何最小化我的蝙蝠文件中的命令提示符
- Windows用Eclipse来开发hadoop的WordCount的helloworld
- uwp – 如何使用Universal Windows App中的System.Net.Http
- 符合标准的编译器是否可以破坏uint32_t – > int16_t – >
推荐文章
站长推荐
- 有没有办法在Windows上运行virt-manager?
- windows下编译支持https的libcurl
- 安装tensorflow-gpu2.0(windows)
- windows – 如何在软件安装期间锁定普通(非管理员
- windows – Azure教程 – 如何使用本地blob存储
- windows – NTFS元数据中包含哪些信息?
- windows-server-2003 – 从Windows识别HP阵列逻辑
- windows-server-2008 – Exchange DiskShadow /
- 在Windows上进行Qt dll部署
- .net-4.0 – 使用CurrentDomain.SetData(“APP_C
热点阅读