AzureAD / microsoft-authentication-library-for-dotnet

Microsoft Authentication Library (MSAL) for .NET
https://aka.ms/msal-net
MIT License
1.39k stars 342 forks source link

[Engineering task] Check to see if Edge is installed on Agents before installing them #4788

Closed gladjohn closed 2 months ago

gladjohn commented 4 months ago

Task type

Builds

Description

Some OneBranch machines now come pre-installed with Edge and once in a while we get this error.

Download of MicrosoftEdgeEnterpriseX64.msi (171.39 MB) completed.
WARNING: Ignoring checksums due to feature checksumFiles turned off or option --ignore-checksums set.
Installing microsoft-edge...
WARNING: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself - it could mean a pending reboot is necessary prior to install or something else (like the same version is already installed). Please see MSI log if available. If not, try again adding '--install-arguments="'/l*v c:\microsoft-edge_msi_install.log'"'. Then search the MSI Log for "Return Value 3" and look above that for the error.
ERROR: Running ["C:\Windows\System32\msiexec.exe" /i "C:\Users\ContainerAdministrator\AppData\Local\Temp\chocolatey\microsoft-edge\125.0.2535.67\MicrosoftEdgeEnterpriseX64.msi"  /qn /norestart /l*v "C:\Users\ContainerAdministrator\AppData\Local\Temp\chocolatey\microsoft-edge.125.0.2535.67.MsiInstall.log" ] was not successful. Exit code was '1603'. Exit code indicates the following: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself - it could mean a pending reboot is necessary prior to install or something else (like the same version is already installed). Please see MSI log if available. If not, try again adding '--install-arguments="'/l*v c:\microsoft-edge_msi_install.log'"'. Then search the MSI Log for "Return Value 3" and look above that for the error..
  microsoft-edge may be able to be automatically uninstalled.
The install of microsoft-edge was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\microsoft-edge\tools\chocolateyinstall.ps1'.
 See log for details.

Solution

Check to see if Edge is installed before installation

gladjohn commented 2 months ago

we went back to using Chrome