使用 vbscript 填充 installshield 中的组合框

发布于 2024-12-19 08:32:04 字数 361 浏览 1 评论 0原文

我正在尝试使用本地计算机上的网络适配器名称列表填充 Installshield 中的组合框。我正在尝试使用 vbscript 自定义操作,我从这里修改了一些: http:// /community.flexerasoftware.com/showthread.php?t=188130

MsiRecord.StringData(1) = "REGION" 'The Name of the Property

我似乎在这一行遇到错误,并且安装崩溃。有什么建议吗?

I am trying to populate a combo box in Installshield with a list of network adapter names on the local machine. I'm trying to use a vbscript custom action which I modified a bit from here : http://community.flexerasoftware.com/showthread.php?t=188130

MsiRecord.StringData(1) = "REGION" 'The Name of the Property

I seem to be getting an error on this line, and the installation crashes. Any suggestions?

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

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

发布评论

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

评论(1

我们只是彼此的过ke 2024-12-26 08:32:04

由于您谈论的是使用 VBScript 自定义操作更新 Windows 安装程序表,因此这确实与 Windows Installer 有关,而与 InstallShield 没有太大关系。

我认为论坛上发布的示例不正确。我建议阅读下一页以更好地理解并查看提供的 Combobox 和 ListBox 示例项目。

使用双列表框替换多选列表框

就我个人而言,我怀疑您引用的示例的问题是在创建记录时缺少 Set 语句。我记得,自从我接触 VBScript 以来已经有一段时间了,创建对象时必须使用 Set 命令。但我强烈建议不要在自定义操作中使用 VBScript。 C/C++、InstallScript 和 C#(使用 DTF)是更强大的解决方案。

Since your talking about updating windows installer tables using VBScript custom actions this really has everything to do with Windows Installer and not much to do with InstallShield per say.

I don't think that example posted on the forums was correct. I'd suggest reading the following page to get a better understand and take a look at the Combobox and ListBox sample projects provided.

Using Dual ListBoxes as Replacement for a Multi-Selection ListBox

Personally I suspect the problem with the sample you quoted is missing a Set statement when creating the record. As I recall, and it's been awhile since I touched VBScript, you have to use the Set command when creating an object. But I really advise against using VBScript in Custom Actions. C/C++, InstallScript and C# ( using DTF ) are far more robust solutions.

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