Importante
Problema conocido para el agente de infraestructura v1.73.0 y versiones posteriores: la instalación de MSI puede fallar con el error 1603 en sistemas con restricciones de directiva de grupo de Windows.
Problema
- La instalación funcionó con v1.72.x pero falla con v1.73.0 o más reciente
- Ocurre en sistemas Windows reforzados o compatibles con CIS
- El servicio
newrelic-infrano está creado
Causa
El agente de infraestructura v1.73.0+ utiliza acciones personalizadas diferidas de PowerShell para la instalación. La configuración de la política de grupo de Windows HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer\DisableMSI (cuando se establece en 1 o 2) bloquea estas acciones por razones de seguridad.
Solución
Deshabilite temporalmente la restricción de MSI durante la instalación:
# Store original value$regPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Installer"$origValue = (Get-ItemProperty -Path $regPath -Name DisableMSI -ErrorAction SilentlyContinue).DisableMSI
try { # Temporarily allow MSI custom actions if (-not (Test-Path $regPath)) { New-Item -Path $regPath -Force | Out-Null } Set-ItemProperty -Path $regPath -Name DisableMSI -Value 0 -Type DWord -Force # Run the installation msiexec.exe /qn /i PATH\TO\newrelic-infra.msi GENERATE_CONFIG=true LICENSE_KEY=YOUR_LICENSE_KEY } finally { # Restore original value if ($null -ne $origValue) { Set-ItemProperty -Path $regPath -Name DisableMSI -Value $origValue -Type DWord -Force } else { Remove-ItemProperty -Path $regPath -Name DisableMSI -ErrorAction SilentlyContinue }}Ejecute este script de PowerShell para comprobar si la directiva DisableMSI causará problemas:
$regPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Installer"$disableMsi = (Get-ItemProperty -Path $regPath -Name DisableMSI -ErrorAction SilentlyContinue).DisableMSI
if ($null -eq $disableMsi -or $disableMsi -eq 0) { Write-Host "DisableMSI not set or set to 0 - Installation should work"} else { Write-Host "WARNING: DisableMSI is set to $disableMsi - Installation will likely fail with error 1603" Write-Host "Use the workaround above to install successfully"}