Skip to content

Commit

Permalink
Wrapped $msiLog in quotes in Invoke-MsiExec (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
rchildress87 authored Oct 29, 2024
1 parent 8855b53 commit ccb94e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OctopusDSC/DSCResources/cTentacleAgent/cTentacleAgent.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ function Invoke-MsiExec ($name, $logDirectory, $msiPath) {
Write-Verbose "Installing MSI..."
$msiLog = "$logDirectory\Tentacle.$name.msi.log"
write-verbose "Executing 'msiexec.exe /i $msiPath /quiet /l*v $msiLog'"
$msiExitCode = (Start-Process -FilePath "msiexec.exe" -ArgumentList @("/i", "`"$msiPath`"", "/quiet", "/l*v", $msiLog) -Wait -Passthru).ExitCode
$msiExitCode = (Start-Process -FilePath "msiexec.exe" -ArgumentList @("/i", "`"$msiPath`"", "/quiet", "/l*v", "`"$msiLog`"") -Wait -Passthru).ExitCode
Write-Verbose "MSI installer returned exit code $msiExitCode"
if ($msiExitCode -ne 0) {
throw "Installation of the MSI failed; MSIEXEC exited with code: $msiExitCode. View the log at $msiLog"
Expand Down

0 comments on commit ccb94e4

Please sign in to comment.