如何将网格或解析的 XML 数据绑定到自定义 Windows Installer 用户界面对话框?
我正在为我正在部署的应用程序创建一个 C# Windows 安装程序(使用 C# 安装项目),但我遇到了有限 UI 控件的问题。
在整个安装过程中,我将所有安装程序活动记录到一个 XML 文件中,因此在安装过程的最后屏幕中,我想以编程方式解析该 XML(可能通过自定义操作)并将其绑定到网格上对话框(非常类似于 Windows 窗体)或解析 XML 并以文本格式显示它。
我最接近的是附加“自述文件”对话框,该对话框需要显示“.RTF”文本正文,我将 XML 解析为 .RTF 格式应该没有问题,但是,我怎样才能通过自定义操作以编程方式执行此操作,以便我可以将其显示在“自述文件”对话框中?
另一个选项是创建一个全新的对话框来绑定网格或解析的 XML。我一直在使用 Orca 工具查看这篇文章(http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx[^]),但是它主要用于文本框控件或单选按钮。
有人可以帮我解决这个问题吗?
非常感谢。
I'm creating a C# Windows Installer (using a C# Setup Project) for an application that I'm deploying and I have a problem with the limited UI controls.
Throughout the install process, I am logging all the installer activity to an XML file, so in the final screens of the install process, I'd like to parse that XML programmatically (perhaps through a custom action) and bind it to a grid onto the dialog box (which is pretty much like a Windows Form) or parse the XML and display it in text format.
The closest I've come is to attach the "Read Me" dialog box which takes an ".RTF" body of text to display, which I should have no problem parsing my XML into an .RTF format, however, how I can I programmatically do that through a custom action so that I can display it on the Read Me dialog box?
The other option is to create a brand new dialog box to bind a grid or parsed XML to. I've been looking at this article (http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx[^]) using the Orca tool however, it's mainly for textbox control or radio buttons.
Can someone help me with this issue please?
Thanks very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你为什么不尝试使用Wix呢?
http://wix.sourceforge.net/
http://www.tramontana.co.hu/wix/
顺便说一句,在对话框中显示文本有什么问题。在自定义操作代码中,您应该能够获取对对话框的引用并将 xml 显示到对话框中。
Why dont you try to use Wix?
http://wix.sourceforge.net/
http://www.tramontana.co.hu/wix/
By the way what is problem displaying text in a dialog. Inside your custom action code you should be able to get a reference to your dialog box and display the xml into the dialog.