How to call vbscript from Install shield script

我是研究僧i 提交于 2019-12-12 05:09:14

问题


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.


回答1:


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

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).

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

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



来源:https://stackoverflow.com/questions/40655901/how-to-call-vbscript-from-install-shield-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!