使用 vbscript 填充 installshield 中的组合框
我正在尝试使用本地计算机上的网络适配器名称列表填充 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于您谈论的是使用 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.