如何将网格或已解析的XML数据绑定到自定义Windows Installer用户界面对话框? [英] How to bind a grid or parsed XML data to a custom Windows Installer User Interface Dialog Box?

查看:175
本文介绍了如何将网格或已解析的XML数据绑定到自定义Windows Installer用户界面对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在为要部署的应用程序创建C#Windows安装程序(使用C#安装项目),但受限的UI控件存在问题.

在整个安装过程中,我将所有安装程序活动记录到XML文件中,因此在安装过程的最后屏幕中,我想以编程方式(可能是通过自定义操作)解析该XML并将其绑定到网格进入对话框(非常类似于Windows窗体)或解析XML并以文本格式显示.

我最接近的是附加自述"对话框,该对话框带有".RTF"文本体来显示,我将XML解析为.RTF格式应该没有问题,但是,我可以我通过自定义操作以编程方式执行此操作,以便可以在自述"对话框中显示它?

另一个选项是创建一个全新的对话框,以将网格或已解析的XML绑定到该对话框.我一直在看这篇文章( http://www.codeproject.com/KB/install/vsSetupCustomDialogs. aspx [ ^ ]), Orca工具,但是它主要用于文本框控件或单选按钮.

有人可以帮我解决这个问题吗?

非常感谢.

Hi guys,

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.

推荐答案

在主项目中添加InstallerClass,然后安装文件的自定义操作"将调用它.在InstallerClass的属性上,您可以执行AfterInstall,BeforeInstall等.您可以在此处弹出一个表单(尽管这是不好的形式,并且安装时SEPERATE不好,即很难集成到安装中).您可以修改一些安装状态变量,但基本上Visual Studio随附的安装项目受到一定程度的限制.可以在此处找到一些示例,您可以跳到Installer Class部分并基本上添加事件want和Form f = new Form(); f.Show();或f.ShowDialog();
Add an InstallerClass to your main project, then Custom Actions of your Setup file will call it. On the properties of the InstallerClass you can execute AfterInstall, BeforeInstall, etc. You can pop up a form here (though this is bad form and SEPERATE from your installation, i.e. very difficult to integrate into the installation). You can modify some of the install state variables but basically the Setup Projects that come with Visual Studio are somewhat limited. Some examples can be found here, you can just skip to the Installer Class portion and basically add the event you want and Form f = new Form(); f.Show(); or f.ShowDialog();


这篇关于如何将网格或已解析的XML数据绑定到自定义Windows Installer用户界面对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆