Without using the ProcessBuilder, I can run this command via the prompt successfully.
winexe --user \administrator --password foo //192.168.1.13 "msiexec /qn /i \setup.msi"
I am creating my ProcessBuilder via this constructor
ProcessBuilder(String[] commands)
The String[] arguments that I pass into the ProcessBuilder are as follow
[0] winexe
[1] --user \administrator
[2] --password foo
[3] //192.168.1.13
[4] "msiexec /qn /i \setup.msi"
The output looks like the below so I knew the ProcessBuilder is executing the command except the parameter that I am passing in doesn't seem to be correct. Can anyone spot what I did wrong?
winexe version 0.90
This program may be freely redistributed under the terms of the GNU GPL
Usage: winexe [-?|--help] [--usage] [-d|--debuglevel DEBUGLEVEL]
[--debug-stderr] [-s|--configfile CONFIGFILE] [--option=name=value]
[-l|--log-basename LOGFILEBASE] [--leak-report] [--leak-report-full]
[-R|--name-resolve NAME-RESOLVE-ORDER]
...