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
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.
Passing parameters to a VBScript File
Started by
shajilr
, Oct 08 2002 12:59
2 replies to this topic
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":
But perhaps somebody of the community knows it better?
Eberhard
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
Posted 08 October 2002 - 19:52
This works...
LaunchAppAndWait("C:\\WINNT\\system32\\wscript.exe", "MyScript.vbs myParameter", NOWAIT);
LaunchAppAndWait("C:\\WINNT\\system32\\wscript.exe", "MyScript.vbs myParameter", NOWAIT);