Skip to content

Commit ccb94e4

Browse files
authored
Wrapped $msiLog in quotes in Invoke-MsiExec (#304)
1 parent 8855b53 commit ccb94e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OctopusDSC/DSCResources/cTentacleAgent/cTentacleAgent.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ function Invoke-MsiExec ($name, $logDirectory, $msiPath) {
815815
Write-Verbose "Installing MSI..."
816816
$msiLog = "$logDirectory\Tentacle.$name.msi.log"
817817
write-verbose "Executing 'msiexec.exe /i $msiPath /quiet /l*v $msiLog'"
818-
$msiExitCode = (Start-Process -FilePath "msiexec.exe" -ArgumentList @("/i", "`"$msiPath`"", "/quiet", "/l*v", $msiLog) -Wait -Passthru).ExitCode
818+
$msiExitCode = (Start-Process -FilePath "msiexec.exe" -ArgumentList @("/i", "`"$msiPath`"", "/quiet", "/l*v", "`"$msiLog`"") -Wait -Passthru).ExitCode
819819
Write-Verbose "MSI installer returned exit code $msiExitCode"
820820
if ($msiExitCode -ne 0) {
821821
throw "Installation of the MSI failed; MSIEXEC exited with code: $msiExitCode. View the log at $msiLog"

0 commit comments

Comments
 (0)