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

Passing parameters to a VBScript File


2 replies to this topic

shajilr

shajilr
  • Members
  • 11 posts

Posted 08 October 2002 - 12:59

Hi,
   I will be getting parametrs from the user in the installshield, how can i pass it to the vbscript file which Iwill be executing using a wscript.exe. Could any one help me with some sample code.
Thanks,
shajil

EberhardH

EberhardH
  • Members
  • 137 posts

Posted 08 October 2002 - 13:36

sorry, I'm not that familiar with VB scripts.

In case you launch the VB script with LaunchAppAndWait, I'd assume to hand over the retrieved string as its second parameter "szCommand":

Code Sample

szProgram = "C:\\WINNT\\system32\\wscript.exe " + szVbScriptName;
szCommand = szUserString;
lWait = WAIT;
nReturn = LaunchAppAndWait(szProgram, szCommand, lWait);


But perhaps somebody of the community knows it better?

Eberhard

Shawn

Shawn
  • Members
  • 4 posts

Posted 08 October 2002 - 19:52

This works...

LaunchAppAndWait("C:\\WINNT\\system32\\wscript.exe", "MyScript.vbs myParameter", NOWAIT);