Visual Studio安装程序项目自定义对话框 [英] Visual Studio Setup Project Custom Dialog

查看:337
本文介绍了Visual Studio安装程序项目自定义对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用
此处

现在我的一个对话框中有一个组合框。我想用在本地网络上运行的所有SQL Server实例的列表填充组合框。获取服务器列表很简单...但是我完全不知道如何在组合框中显示它们。我会很感激您的帮助,因为我是初学者,所以有些代码也可能很不错:)。

Now I have a combobox in one of my dialogs. I want to populate the combobox with a list of all SQL Server instances running on the local network. It's trivial to get the server list ... but I'm completely lost on how to make them display in the combobox. I would appreciate your help and some code might also be nice as I'm beginner :).

推荐答案

我一直都发现

相反,我通常会创建自定义操作,以显示在安装过程中遇到任何困难任务的winforms gui 。效果非常好,您可以通过创建自定义操作并传递一些参数来完成任何您想做的事情。

By contrast, I normally create custom actions that display winforms gui's for any remotely difficult tasks during setup. Works really well and you can do just about anything you want by creating a custom action and passing a few parameters across.

在日工作中,我们构建了一组常见的自定义操作用于执行应用程序配置和数据库创建/脚本执行之类的任务,以解决自定义对话框的局限性。

In the dayjob we built a collection of common custom actions for tasks like application config and database creation / script execution to get around custom dialog limitations.

这篇关于Visual Studio安装程序项目自定义对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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