Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

calling vbs script


2 replies to this topic

carlodimascio

carlodimascio
  • Members
  • 1 posts

Posted 13 February 2001 - 02:32

What is the best way to define custom action to call  a vbs script with parameters?

Leigh Ravenhall

Leigh Ravenhall
  • Members
  • 269 posts

Posted 13 February 2001 - 05:54

To the best of my knowledge, it isn't possible to pass parameters into a vbscript function.  Instead, you set properties in install script using MsiSetProperty.  You can then access these properties from your vbscript by calling:

     MyLocalVar = Session.property("MyProperty")

These properties are read/write, so you can also write the properties as a replacement for return values from the script.

Hope this helps,

Leigh.