Prerequisites
PSAppDeployToolkit version
4.1.0
Describe the bug
When starting a process with Start-ADTProcess if an argument has quotes then the whole argument gets quotes and the internal quotes get escaped.
I am not sure if that is supposed to work but the install I am updating doesn't seem to like it.
Steps to reproduce
Simple example from command line.
Start-ADTProcess -FilePath 'cmd.exe' -ArgumentList @('/option1', '/option2 "thing"')
- View command line in task manger
"C:\Windows\system32\cmd.exe" /option1 "/option2 \"thing\""
Doing the same thing with 4.0.6 the command line is, which is the expected result.
"C:\Windows\system32\cmd.exe" /option1 /option2 "thing"
Environment data