Skip to content

Commit c3317fd

Browse files
committed
chore: Get logging on msi failure
1 parent 946f9b2 commit c3317fd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tasks/infra/agent/integrationTests_windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
- test_name: InfrastructureVersionPresentWindows
22
dockerfile_lines:
33
- ADD https://download.newrelic.com/infrastructure_agent/windows/newrelic-infra.msi newrelic-infra.msi
4+
- RUN $regPath = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Installer'; if (-not (Test-Path $regPath)) { New-Item -Path $regPath -Force | Out-Null }; Set-ItemProperty -Path $regPath -Name DisableMSI -Value 0 -Type DWord -Force
45
- RUN $p = Start-Process msiexec.exe -ArgumentList '/qn','/i','newrelic-infra.msi','/l*v','C:\install.log' -Wait -PassThru; if (Test-Path C:\install.log) { Get-Content C:\install.log } else { Write-Host 'no MSI log produced' }; if ($null -ne $p.ExitCode -and $p.ExitCode -ne 0) { exit $p.ExitCode }
56
log_entry_expected:
67
- Info.*Infra/Agent/Version.*

0 commit comments

Comments
 (0)