Archive: Execute file with parameters


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


i guess it's your usage of quotes. check the scripting reference on possibilities how to use quotes.


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!


escape the quote chars, ex: #define blah "Hello$\"World"


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


'"$INSTDIR\program.exe" /opt1 /go"online" /ab"$INSTDIR\extras\helper.exe" /q'