Feb 20, 2014 at 4:13 AM
Edited Feb 20, 2014 at 4:14 AM
So, when I ran an install with the Execute-Process function, I got an error about the working directory not existing.
Upon closer review, I noticed that the function is similar to the Execute-MSI function.
The different I noticed was in the Param "[string] $WorkingDirectory" (line 1301). I made the following changes and it worked perfectly.
Line 1301 changed from:
[string] $WorkingDirectory = (Split-Path $FilePath -Parent),
After line 1311 I added:
# Set the working directory of the Process
$WorkingDirectory = Split-Path $FilePath -Parent
We may have to add a "If (!$WorkingDirectory)" in there have not done extended testing.