- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
使用 WixSharp,我们可以插入一个自定义的 System.Windows.Forms 窗口作为对话框。
project.InjectClrDialog("ShowCustomDialog", Dialogs.InstallDirDlg, Dialogs.VerifyReadyDlg);
[CustomAction]
public static ActionResult ShowCustomDialog(Session session)
{
return WixCLRDialog.ShowAsMsiDialog(new MyCustomDialog(session));
}
MyCustomDialog 派生自 WixCLRDialog 类。
如果我要显示连续的自定义对话框(在 System.Windows.Forms 中完成)。如何插入它们?
最佳答案
最简单的方法是将多个对话框打包到一个 UI shell 中,并允许 shell 在对话框之间导航。如果您采用这种方法,那么您只需注入(inject)一个 shell-ClrDialog。
顺便说一句,带有多个 CLR 对话框的 UI shell 是我计划很快发布的一项功能。
奥列格
关于c# - WixSharp 注入(inject)多个自定义 CLR 对话框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30381854/
我一直在使用 WIX# (wixsharp) 来创建 MSI,但我看不到如何安装 Windows 服务。我已经浏览了整个 CHM 文件,但没有看到任何特定于 Windows 服务的内容。 TIA, 布
我有一个编译为 .dll 的自定义操作项目,我希望能够逐步完成我的自定义操作,我知道可以将包更改为 wixsharp.bin,但这看起来不太实用。不管怎样,我仍然尝试了这种方法,但它没有达到我的断点。
我制作了一个 WixSharp 64 位安装程序,它应该在“Program Files”下的两个不同目录下安装文件。这是代码的精简版本: using System; using WixSharp; u
使用 WixSharp,我们可以插入一个自定义的 System.Windows.Forms 窗口作为对话框。 project.InjectClrDialog("ShowCustomDialog", D
我是一名优秀的程序员,十分优秀!