如何从安装盾脚本调用vbscript [英] How to call vbscript from Install shield script

查看:96
本文介绍了如何从安装盾脚本调用vbscript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是这个安装防护环境的新手.我的要求是我想在安装结束时执行VB脚本.我们可以使用安装防护罩中的自定义操作"功能来实现此操作.但是我必须将2个参数传递给VB脚本.为此,我创建了setup.rul(安装防护脚本)来调用VB脚本并传递参数.在这里,我需要有关如何从安装"盾脚本中调用VB脚本以及传递参数的帮助.提前感谢你的帮助.

i am new to this install shield environment. My requirement is that i want to execute the VB script at the end of installation. We can achieve this operation using Custom action feature in install shield. But i have to pass 2 parameters to VB script. To achieve that, I have created a setup.rul (install shield script) to call the VB script and pass the parameters. Here i need assistance on how to call the VB Script from Install shield script and to pass the parameters. Thanks in advance for your assistance.

推荐答案

您不必将脚本包装在setup.rul中.

You don't have to wrap your script in a setup.rul.

您可以直接创建Visual Basic脚本操作(我建议存储在二进制表中,因为它允许您将其存储为ISM旁边的vbs文件,因此更易于维护)

You can create directly a Visual Basic script action (I would suggest Stored in binary table since it allows you to store it as a vbs file next to your ISM and so it's easier to maintain).

在您的vbScript中,您可以使用Session.Property("MyProperty")方法从msi中恢复和设置属性.

Inside your vbScript, you can use the Session.Property("MyProperty") method to recover and set properties from your msi.

如果您计划使用延迟操作,则唯一可用的属性将是"CustomActionData".

N.B. If you plan using a deferred action, then the only property available will be "CustomActionData".

这篇关于如何从安装盾脚本调用vbscript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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