miakki
14th July 2004 05:51 UTC
Execute file with parameters
Hi!
After the installation, I need to execute a file, like:
Function .onGUIEnd
Exec "$INSTDIR\program.exe"
FunctionEnd
Problem is that I need to execute the file with a few parameters, like this to be specific:
program.exe /opt1 /go"online" /ab"$INSTDIR\extras\helper.exe" /q
Now, how am I supposed to do this, I suppose that:
Exec '"$INSTDIR\program.exe /opt1 /go"online" /ab"$INSTDIR\extras\helper.exe" /q"'
Does not work..
Would really appreciate some help.
Thanks!
/Mia
Yathosho
14th July 2004 07:34 UTC
i guess it's your usage of quotes. check the scripting reference on possibilities how to use quotes.
miakki
14th July 2004 16:26 UTC
Well,
all that I can fint there is that I should do like this:
'"program.exe" parameters'
But what if the parameters contains quotes.. I did not find anything on that in the scripting reference.
Thanks!
Anders
14th July 2004 17:00 UTC
escape the quote chars, ex: #define blah "Hello$\"World"
miakki
15th July 2004 01:59 UTC
Ok.. hmmmm..
Could someone please give me the whole line, how should it be? Just can't figure it out. I have almost read the entire documentation now..
I would be so happy if someone could help out..
/M
deguix
15th July 2004 03:23 UTC
'"$INSTDIR\program.exe" /opt1 /go"online" /ab"$INSTDIR\extras\helper.exe" /q'