Azure Agent Pipeline ADO – The system administrator has set policies to prevent this installation.

Searching for MSI in path: C:\agent\_work\1\a\GitHubArtifact

Found MSI: C:\agent\_work\1\a\GitHubArtifact\Images Setup v26.2.0.33.msi

Installing MSI using msiexec...

The system administrator has set policies to prevent this installation.

 
# Create the key if it doesn't exist, then set the value 
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Installer" -Force 

Set-ItemProperty "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Installer" -Name "AlwaysInstallElevated" -Value 1 -Type DWord 

New-Item -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Installer" -Force 

Set-ItemProperty "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Installer" -Name "AlwaysInstallElevated" -Value 1 -Type DWord 

# Verify both 

Get-ItemProperty "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Installer" 

Get-ItemProperty "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Installer"
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...