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

VBScript custom action - passing function paramete


1 reply to this topic

janb

janb
  • Members
  • 5 posts

Posted 08 July 2002 - 14:11

Hi,

executing a VBScript custom action using a basic msi project causes strange problems.

I used following settings an code:
Custom action details:
- type: VBScript
- location: streamed into binary table
- target: function call

VBScript:
Function ShowMessage
MsgBox "Some Message"
End Function

Function HelloWorld(sMessage)
MsgBox sMessage
End Function
As soon as the function has parameters I receive error 1720:
- custom action with ShowMessage executes fine
- custom action with function HelloWorld("Some parameter") causes error 1720.


What can I do to run a VBScript function with parameters?

I'm using InstallShield Developer 7.01

Thanks

Jan Baer

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 08 July 2002 - 22:29

You can't pass in parameters. Use properties instead:

Function HelloWorld
MsgBox Session.Property("MESSAGE")
End Function