Visual Studio 安装项目自定义对话框
我已经使用描述的步骤为 Visual Studio 安装项目创建了一个自定义对话框 此处
现在我的一个对话框中有一个组合框。 我想用本地网络上运行的所有 SQL Server 实例的列表填充组合框。 获取服务器列表很简单......但我完全不知道如何使它们显示在组合框中。 我将感谢您的帮助,并且一些代码可能也不错,因为我是初学者:)。
I have created a custom dialog for Visual Studio Setup Project using the steps described
here
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 :).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想您必须超越开箱即用的设置和部署包并尝试第三方应用程序。
您可能需要查看:
两者都是免费的; 他们可能会为您提供所需的定制服务。
I guess you'll have to go beyond the out-of-the-box setup and deployment package and try a third party app.
You may want to look at:
Both are free; they might give you the customization that you need.
我总是发现 Visual Studio 设置项目中的自定义对话框受到严重限制并且几乎无法发挥作用。
相比之下,我通常会创建自定义操作来显示 winforms gui,以应对安装过程中任何远程困难的任务。 效果非常好,您可以通过创建自定义操作并传递一些参数来完成您想做的任何事情。
在日常工作中,我们为应用程序配置和数据库创建/脚本执行等任务构建了一系列常见的自定义操作,以解决自定义对话框的限制。
I've always found the custom dialogs in visual studio setup projects to be woefully limited and barely functional.
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.