使用 Orca 将组合框添加到设置中

发布于 2024-07-06 02:47:05 字数 368 浏览 11 评论 0原文

我试图在组件设置期间在对话框中显示组合框。 目前,我们有一个单选按钮组。 我认为用组合框替换它应该像在 MSI 的“ComboBox”表和“Control”表中添加适当的条目一样简单,在适当的对话框中用组合框替换对单选按钮组的引用。 然而这不起作用。 安装程序崩溃并给出错误#2885。 [Windows Installer 错误 2885:无法在对话框 [2] 上创建控件 [3]。 来自此处。]

有关如何执行此操作的任何想法? 显然我只能使用Orca(这是从任何人都记得以来一直使用的)。

I am trying to display a combo box in a dialog during setup of a component. Currently, we have a Radio Button Group. I figured that replacing it with the combo box should be as simple as adding proper entries in the "ComboBox" table in the MSI and in the "Control" table, replacing the references to the radio button group with combobox in the appropriate dialog box. However this is not working. The setup blows up and gives an error #2885. [Windows Installer Error 2885: Failed to create the control [3] on the dialog [2]. from here.]

Any ideas on how to do this? I can only use Orca apparently (thats what has been used since anyone can remember).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一场春暖 2024-07-13 02:47:05

啊哈!! 弄清楚那是什么了。
我做的一切都是正确的,除了当我用组合框替换单选按钮时,仍然有一个元素(上一个按钮)将单选按钮组作为其下一个元素(有点像制表位)。 在表单加载时,它尝试查找单选按钮但找不到它们,从而给出错误。

有点像处理链表时典型的新程序员错误:不更新对要删除/插入的节点的引用。

Aha!! Figured out what it was.
I was doing everything right, except that when i replaced the radio button with the combo box, there was still one element (Previous Button) which had the Radio Button Group as its next element (Sort of like a tab stop). And on form load, it tried to find the radio buttons and could not find them, thus giving the error.

Sort of like the typical new programmer mistakes when dealing with linked lists: Not updating the references to the node which you are deleting/inserting.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文