I’m sure that I’m overlooking something stupid simple, but I can’t for the life of me figure out why this isn’t working:
$path = ".installfilessetup.exe"; $path_args = "-inputFile installer_input.txt"; Start-Process $path -ArgumentList $path_args;
Running install.ps1 with the above in it starts setup.exe, but does not pass -inputFile installer_input.txt to it.
Running this from the same location (well, one folder deeper – inside the ‘installfiles’ folder) via command prompt works just fine:
setup.exe -inputFile installer_input.txt
What am I overlooking here?
Thanks!!
submitted by /u/xevilrobotx
[link] [comments]
The post Start-Process Arguments not getting added? appeared first on How to Code .NET.