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

me than one arguments in LaunchAPpandWait function


1 reply to this topic

anjalai

anjalai
  • Members
  • 15 posts

Posted 12 November 2003 - 20:17

Hi
I want to run a exe file with two argumetns both are of number type.
i.e mksystem.exe number1 number2.
Doy ou know how to execute the above command from IS.
szCmd=SupportDir^"MKSystem.exe";
szArgs="/c " + NumTostr(number1) +" " + NumTostr( number2)
I tried LaunchAppAndWait(szCmd,szArgs,WAIT) but no luck.

Please let me know if you have any idea.
Thanka
A

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 13 November 2003 - 01:33

Oh, I was having a discussion with him over e-mail on this same problem. I made several suggetions, such as his misuse of NumToStr and wrapping the parameters in quotes, but supposedly "it still didn't work".

Everything is now getting built up right, but I guess this MKSystsem.exe program still doesn't see it, so at this point I would be suspicious of the program.

However to simplify things anjalai, I would just try using straight string constants such as the following:

CODE
LaunchAppAndWait(SupportDir^"MKSystem.exe", "/c 1 2",WAIT);

If at this point, it still doesn't see then it's something with your executable, so try doing the same thing from the command line.

However, in looking at it again, why are you passing the additional /c switch when your example (i.e mksystem.exe number1 number2) doesn't show it? Maybe that's your whole problem!!!

Edited by Taco Bell, 13 November 2003 - 01:33.

user posted image