qqqqqq
Level 7

How to Use EXECUTE COMMAND ?

I am using "execute command" action in installanywhere.
can i excute something like :

$USER_INSTALL_DIR$$\$xyz.exe arg1

where xyz.exe : i am putting during installation and it takes "arg1" as argument?


plz help !
Labels (1)
0 Kudos
5 Replies
qqqqqq
Level 7

i tried CMD \C $USER_INSTALL_DIR$$\$xyz.exe arg1 ... this also..

how to do this?

any clue?
0 Kudos
pv7721
Level 20

If this is an exe that you're installing, why not use Execute Target instead?
0 Kudos
qqqqqq
Level 7

i have to put that xyz via "expand this archive" (so it does not show up in "execute target file")
+ I have to pass the arguments to it.
0 Kudos
pv7721
Level 20

qqqqqq wrote:
i tried CMD \C $USER_INSTALL_DIR$$\$xyz.exe arg1 ... this also..

how to do this?

any clue?


I think that the correct syntax should be something like

CMD /C "$USER_INSTALL_DIR$$\$xyz.exe arg1"


So it's slash C and not backslash C and also assuming that your USER_INSTALL_DIR contains spaces you need quotes around.
0 Kudos
qqqqqq
Level 7

thanks Vlad 🙂
0 Kudos