WebView2Feedback icon indicating copy to clipboard operation
WebView2Feedback copied to clipboard

[Problem/Bug]: Evergreen Standalone installer fails when running during Operating System Deployment via SCCM

Open jones948 opened this issue 1 year ago • 21 comments

What happened?

I have the Evergreen Standalone installer packaged as an application in SCCM and included to be installed when I'm re-imaging a computer. The installer is failing with exit code 4294967295. This is happening with the latest installer downloaded from the WebView2 installer page.

I reverted my application to use an older installer (91.0.864.37) and it installs fine during imaging, which makes me think something has changed with the newer installer.

I'm installing it during imaging because other applications later in the imaging process require it (ArcGIS Pro, Camtasia, etc.) and will fail if it is not present.

This is the log of the install process that generates the error:

Parsed CmdLine: MicrosoftEdgeWebView2RuntimeInstallerX64.exe /install /silent AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) Parsed CmdLine: MicrosoftEdgeWebView2RuntimeInstallerX64.exe /install /silent AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) Prepared command line: "C:\WINDOWS\ccmcache\1\MicrosoftEdgeWebView2RuntimeInstallerX64.exe" /install /silent AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) Parsed CmdLine: "C:\WINDOWS\ccmcache\1\MicrosoftEdgeWebView2RuntimeInstallerX64.exe" /install /silent AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) Executing Command line: "C:\WINDOWS\ccmcache\1\MicrosoftEdgeWebView2RuntimeInstallerX64.exe" /install /silent with system context AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) Parsed CmdLine: "C:\WINDOWS\ccmcache\1\MicrosoftEdgeWebView2RuntimeInstallerX64.exe" /install /silent AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) Commandline length:68 evaluate:1 AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) Working directory C:\WINDOWS\ccmcache\1 AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) CcmCreateProcess: Running from CcmExec or CcmExec not treated as managed installer; calling CreateProcess directly. AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) Post install behavior is BasedOnExitCode AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) Raising ETW event 20001 AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) Raised ETW event 20001 AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) Process creation time: 2025-01-06 18:34:20:498 AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) Current time: 2025-01-06 18:34:20:525 AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) Actual elapsed time (in seconds): 0 AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) Reconnecting to - Process Id: 3068, MaxRunTime: 7200000 AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) Waiting for process 3068 to finish. Timeout = 120 minutes. AppEnforce 1/6/2025 10:34:20 AM 5752 (0x1678) Process 3068 terminated with exitcode: 4294967295 AppEnforce 1/6/2025 10:34:36 AM 5752 (0x1678) Looking for exit code -1 in exit codes table... AppEnforce 1/6/2025 10:34:36 AM 5752 (0x1678) Unmatched exit code (4294967295) is considered an execution failure. AppEnforce 1/6/2025 10:34:36 AM 5752 (0x1678) Status is switching to Failure AppEnforce 1/6/2025 10:34:36 AM 5752 (0x1678)

Importance

Moderate. My app's user experience is affected, but still usable.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

No response

SDK Version

No response

Framework

Win32

Operating System

Windows 10

OS Version

10.0.19045

Repro steps

You would need an SCCM environment to reproduce this, as it seems to only happen during Operating System Deployment.

Package the WebView2 Runtime as a application with "/install /silent" switches. Include the application as an Install Application step in the OSD task sequence. Application install fails with the mentioned error.

When the error happens, I can bring up a diagnostic command prompt while the Task Sequence is in the error state, go to the cache where the WebView2 installer .exe is located, and run the same command manually, and it will work. So the error is specific to being called via SCCM's application install step.

MicrosoftEdgeWebView2RuntimeInstallerX64.exe /install /silent

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Regression in newer Runtime

Last working version (if regression)

Runtime 91.0.864.37 is the newest installer I had on hand to test with. It likely was working in a newer version than that.

jones948 avatar Jan 06 '25 19:01 jones948

Thanks for reporting the issue. Can you kindly share the installer logs - instructions here?

ambikakunnath avatar Jan 07 '25 03:01 ambikakunnath

Logs attached. There was no %localappdata% log. These are from a failure that occurred 1/6/2025 at 2:14:33 PM.

Edge_Logs.zip

jones948 avatar Jan 07 '25 14:01 jones948

SCCM has an option for applications to run the .exe as a 32-bit process on 64-bit systems. I turned this on and the install appears to work partially (I see the files/folders in C:\Program Files x86\Microsoft\EdgeWebView), however, the installer (MicrosoftEdgeWebView2RuntimeInstallerX64.exe) is now hanging open. The installation step on my test has been running for over 30 minutes so far. I suspect it will hit the timeout and fail.

Hopefully this may help narrow down what the issue is.

Edit: It did fail, but the installer reported an error (code 2147747665). It did not hit the SCCM timeout, but the error was at exactly an hour, so I'm guessing that might be an installer timeout.

jones948 avatar Jan 07 '25 17:01 jones948

is deleting the key prior to install/update HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5} supported?

vartaxe avatar Jan 08 '25 11:01 vartaxe

@jones948, couple of things:

  1. For the logs shared earlier, can you confirm the SCCM was ran at/near 2:14:33pm failure?
  2. Can you kindly share the repro steps and the matching logs?

ambikakunnath avatar Jan 15 '25 07:01 ambikakunnath

I have the exact same issue described in this bug.

stewmang avatar Jan 15 '25 18:01 stewmang

@jones948, couple of things:

1. For the logs shared earlier, can you confirm the SCCM was ran at/near 2:14:33pm failure?

2. Can you kindly share the repro steps and the matching logs?

Yes, the logs I shared correspond to the failure in SCCM at 2:14:33 PM.

As mentioned in my original submission, you need an SCCM environment to reproduce this. The error only happens when you are installing the application as part of an Operating System Deployment task sequence. This is an automated process where the disk is erased, a clean OS installed, and applications installed before you boot into the full Windows environment. The "AppEnforce" log file included with my original post is SCCM's log file of the application install process during OSD.

I have an additional piece of information. I noted above that SCCM can run installers as 32-bit processes on 64-bit systems. When I tested it, I thought it wasn't working. However, I was affected by this bug in my test application:

https://github.com/MicrosoftEdge/WebView2Feedback/issues/555#issuecomment-723349872

...where the order of the command line switches matter: /silent /install works, but /install /silent does not (which absolutely should not matter and should be fixed as well).

I tried the 32-bit option again with the switches in the correct order and the webview2 application works correctly now. I'd still argue something changed in the installer that should be fixed, because no one is going to think about this 32-bit option as a workaround.

jones948 avatar Jan 15 '25 18:01 jones948

I can confirm the issue in our SCCM environment. Tried it again yesterday with the WebView installer version 132.0.2957.115 but it still fails with the error code 4294967295 during deployment.

giglike avatar Jan 23 '25 08:01 giglike

We encountered the same issue using SCCM.

We created an application to deploy using SCCM, which runs as the SYSTEM account locally from a subfolder of C:\Windows\ccmcache. We use the command line below. When SCCM executes on workstations, it exits with error code 4294967295. Command line: "MicrosoftEdgeWebView2RuntimeInstallerX64.exe" /silent /install

Log found in C:\ProgramData\Microsoft\EdgeUpdate\Log\MicrosoftEdgeUpdate.log seems to indicate the issue is an HTTPS call is blocked by the firewall.

[Send][url=https://msedge.api.cdp.microsoft.com/api/v2/contents/Browser/namespaces/Default/names?action=batchupdates][request=[{"Product":"msedgewebview-stable-win-x64",<REDACTED>,"OsArch":"x64","OsPlatform":"win","OsRegionDMA":false,"OsRegionName":"","OsRegionNation":"","OsVersion":"10.0.19045.5371","Priority":0,"Updater":"MicrosoftEdgeUpdate","UpdaterVersion":"1.3.195.43","WIPBranch":""}}]][filename=] <Snipped> [WinHttp status callback][0332F700][handle=0123C530][https failure][0x8] <Snipped> [CdpServicesClient::Send][Requesting batched Edge apps failed.] [AppState::Error][0x011EADC0][0x80072f0d][Unable to connect to the Internet. If you use a firewall, please allowlist MicrosoftEdgeUpdate.exe.]

Considering we specifically downloaded the Standalone installer to avoid these types of firewall issues, it seems like the Standalone "offline" Installer might need to be more "offline".

ClairmontAle avatar Feb 05 '25 19:02 ClairmontAle

We are also experiencing this issue. It seems intermittent - I have seen some SCCM Task Sequence builds complete, but most of the time it is currently failing. Logs show some sort of download issue, but like @ClairmontAle I think this should not be happening for an offline install...

[02/10/25 14:48:14.769][MicrosoftEdgeUpdate:msedgeupdate][5776:2276][DownloadManager::DoDownloadPackage][appid={F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}; version=132.0.2957.140; package_name=MicrosoftEdge_X64_132.0.2957.140.exe]
[02/10/25 14:48:14.769][MicrosoftEdgeUpdate:msedgeupdate][5776:2276][DoDownloadPackage][download prohibited][OOBE]
[02/10/25 14:48:14.769][MicrosoftEdgeUpdate:msedgeupdate][5776:2276][AppState::Error][0x00575138][0x80040823][There was a problem downloading the required files. Error: 0x80040823 ().]
[02/10/25 14:48:14.769][MicrosoftEdgeUpdate:msedgeupdate][5776:2276][AppStateError::QueueInstall][00575138]
[02/10/25 14:48:14.769][MicrosoftEdgeUpdate:msedgeupdate][5776:2276][AppStateError::PreInstallTasks][00575138]
[02/10/25 14:48:14.769][MicrosoftEdgeUpdate:msedgeupdate][5776:2276][AppStateError::Install][0x00575138]
[02/10/25 14:48:14.878][MicrosoftEdgeUpdate:msedgeupdate][1428:5260][DoInstallApps returning error][0x80040823]

To clarify, this appears to happen with the WebView2 Evergreen standalone installers for v132 and v133. We reverted to the v131 installer and are no longer seeing OSD/SCCM Task Sequence provisioning install failures for WebView2.

apiontek avatar Feb 10 '25 20:02 apiontek

A network call requirement from standalone sounds like a bug.

@apiontek/ @ClairmontAle Please confirm if the standalone installer was downloaded from here - Image

Also please share a full set of logs. That would be really helpful.

ParadoxZero avatar Feb 12 '25 12:02 ParadoxZero

@ParadoxZero I can't post full logs publicly without sanitizing manually due to the nature of our environment, so prefer not to post logs, but I can confirm I downloaded the setup from the "Evergreen Standalone Installer" section as you have circled above.

I should also point out this happens via SCCM application deployment as well, not only when running from a Task Sequence.

ClairmontAle avatar Feb 12 '25 13:02 ClairmontAle

@ParadoxZero I can't post full logs publicly without sanitizing manually due to the nature of our environment, so prefer not to post logs, but I can confirm I downloaded the setup from the "Evergreen Standalone Installer" section as you have circled above.

I should also point out this happens via SCCM application deployment as well, not only when running from a Task Sequence.

I have also downloaded the standalone installer and we're seeing the same behaviour. I have been working around this issue by using a package/program in configmgr instead of an application.

The issue has been that this would work up until a new version of Webview2 was released, at that point it would start trying to auto update during the task sequence causing it to fail. I've even tried writing the relevant reg keys for the GPOs to disable Webview2 updates at the start of the task sequence and although you can see the settings are honoured in the edge updater log it STILL tries to update.

I noticed there was a new version released last night and for the first time since this issue started the penultimate version is still installing successfully (as a package/program) possibly something has been changed in the penultimate version in relation to this issue?

stewmang avatar Feb 12 '25 13:02 stewmang

@ParadoxZero - yes, I confirm that is the installer we are using, downloaded from the x64 link where you have circled.

I have the same log sanitation needs @ClairmontAle mentioned but if necessary I could work to reproduce the issue again, collect logs and sanitize them. It will take some time & effort, however, so it would be good to know if the issue has already been fixed. Presumably the standalone installer should just not be trying to update at all. It should just install the version it has and leave potential updating for later.

apiontek avatar Feb 12 '25 20:02 apiontek

I downloaded the latest "Evergreen Standalone Installer" 64-bit a few hours ago, v133.0.3065.59 to be exact. Added to SCCM and deployed to a workstation, I can see from the SCCM logs that it executes, runs for about 40 seconds, then returns exit code "-1" or "4294967295". I had Process Monitor running during this attempt and noticed it simply creates a temp file under "C:\Program Files (x86)\Microsoft\Temp", then reads through the entire "MicrosoftEdgeWebView2RuntimeInstallerX64.exe", then it deletes the *.tmp file it created and the thread exits. It doesn't write to any *.log at any point. So realistically, there is no log file to provide. Here's the relevant portion of the SCCM log:

+++ Starting Install enforcement for App DT "WebView2 Runtime v133.0.3065.59" ApplicationDeliveryType - ScopeId_A264/DeploymentType_d625, Revision - 1, ContentPath - C:\WINDOWS\ccmcache\cr, Execution Context - System AppEnforce 2025-02-12 16:42:09 10012 (0x271C) Performing detection of app deployment type WebView2 Runtime v133.0.3065.59(ScopeId_A264/DeploymentType_d625, revision 1) for system. AppEnforce 2025-02-12 16:42:09 10012 (0x271C) +++ Application not discovered. [AppDT Id: ScopeId_A264/DeploymentType_d625, Revision: 1] AppEnforce 2025-02-12 16:42:10 10012 (0x271C) App enforcement environment: Context: Machine Command line: "MicrosoftEdgeWebView2RuntimeInstallerX64.exe" /silent /install Allow user interaction: No UI mode: 0 User token: null Session Id: 4294967295 Content path: C:\WINDOWS\ccmcache\cr Working directory: AppEnforce 2025-02-12 16:42:10 10012 (0x271C) Prepared working directory: C:\WINDOWS\ccmcache\cr AppEnforce 2025-02-12 16:42:10 10012 (0x271C) Prepared command line: "C:\WINDOWS\ccmcache\cr\MicrosoftEdgeWebView2RuntimeInstallerX64.exe" /silent /install AppEnforce 2025-02-12 16:42:10 10012 (0x271C) Executing Command line: "C:\WINDOWS\ccmcache\cr\MicrosoftEdgeWebView2RuntimeInstallerX64.exe" /silent /install with system context AppEnforce 2025-02-12 16:42:10 10012 (0x271C) Working directory C:\WINDOWS\ccmcache\cr AppEnforce 2025-02-12 16:42:10 10012 (0x271C) Post install behavior is NoAction AppEnforce 2025-02-12 16:42:11 10012 (0x271C) Waiting for process 14056 to finish. Timeout = 120 minutes. AppEnforce 2025-02-12 16:42:11 10012 (0x271C) Process 14056 terminated with exitcode: 4294967295 AppEnforce 2025-02-12 16:42:59 10012 (0x271C) Looking for exit code -1 in exit codes table... AppEnforce 2025-02-12 16:42:59 10012 (0x271C) Unmatched exit code (4294967295) is considered an execution failure. AppEnforce 2025-02-12 16:42:59 10012 (0x271C) ++++++ App enforcement completed (51 seconds) for App DT "WebView2 Runtime v133.0.3065.59" [ScopeId_A264/DeploymentType_d625], Revision: 1, User SID: ] ++++++ AppEnforce 2025-02-12 16:42:59 10012 (0x271C)

ClairmontAle avatar Feb 12 '25 22:02 ClairmontAle

I downloaded the latest "Evergreen Standalone Installer" 64-bit a few hours ago, v133.0.3065.59 to be exact. Added to SCCM and deployed to a workstation, I can see from the SCCM logs that it executes, runs for about 40 seconds, then returns exit code "-1" or "4294967295". I had Process Monitor running during this attempt and noticed it simply creates a temp file under "C:\Program Files (x86)\Microsoft\Temp", then reads through the entire "MicrosoftEdgeWebView2RuntimeInstallerX64.exe", then it deletes the *.tmp file it created and the thread exits. It doesn't write to any *.log at any point. So realistically, there is no log file to provide. Here's the relevant portion of the SCCM log:

+++ Starting Install enforcement for App DT "WebView2 Runtime v133.0.3065.59" ApplicationDeliveryType - ScopeId_A264/DeploymentType_d625, Revision - 1, ContentPath - C:\WINDOWS\ccmcache\cr, Execution Context - System AppEnforce 2025-02-12 16:42:09 10012 (0x271C) Performing detection of app deployment type WebView2 Runtime v133.0.3065.59(ScopeId_A264/DeploymentType_d625, revision 1) for system. AppEnforce 2025-02-12 16:42:09 10012 (0x271C) +++ Application not discovered. [AppDT Id: ScopeId_A264/DeploymentType_d625, Revision: 1] AppEnforce 2025-02-12 16:42:10 10012 (0x271C) App enforcement environment: Context: Machine Command line: "MicrosoftEdgeWebView2RuntimeInstallerX64.exe" /silent /install Allow user interaction: No UI mode: 0 User token: null Session Id: 4294967295 Content path: C:\WINDOWS\ccmcache\cr Working directory: AppEnforce 2025-02-12 16:42:10 10012 (0x271C) Prepared working directory: C:\WINDOWS\ccmcache\cr AppEnforce 2025-02-12 16:42:10 10012 (0x271C) Prepared command line: "C:\WINDOWS\ccmcache\cr\MicrosoftEdgeWebView2RuntimeInstallerX64.exe" /silent /install AppEnforce 2025-02-12 16:42:10 10012 (0x271C) Executing Command line: "C:\WINDOWS\ccmcache\cr\MicrosoftEdgeWebView2RuntimeInstallerX64.exe" /silent /install with system context AppEnforce 2025-02-12 16:42:10 10012 (0x271C) Working directory C:\WINDOWS\ccmcache\cr AppEnforce 2025-02-12 16:42:10 10012 (0x271C) Post install behavior is NoAction AppEnforce 2025-02-12 16:42:11 10012 (0x271C) Waiting for process 14056 to finish. Timeout = 120 minutes. AppEnforce 2025-02-12 16:42:11 10012 (0x271C) Process 14056 terminated with exitcode: 4294967295 AppEnforce 2025-02-12 16:42:59 10012 (0x271C) Looking for exit code -1 in exit codes table... AppEnforce 2025-02-12 16:42:59 10012 (0x271C) Unmatched exit code (4294967295) is considered an execution failure. AppEnforce 2025-02-12 16:42:59 10012 (0x271C) ++++++ App enforcement completed (51 seconds) for App DT "WebView2 Runtime v133.0.3065.59" [ScopeId_A264/DeploymentType_d625], Revision: 1, User SID: ] ++++++ AppEnforce 2025-02-12 16:42:59 10012 (0x271C)

Hi, the Webview2 installation/update activity is carried out by MicrosoftEdgeUpdate.exe and logged in C:\ProgramData\Microsoft\EdgeUpdate\Log\MicrosoftEdgeUpdate.log

stewmang avatar Mar 10 '25 09:03 stewmang

Is anything being done about this bug? It's been ongoing for three months now. Every time Webview2 is updated it fails in ConfigMgr task sequences. This seems to be due to it trying to auto update during the task sequence, this happens even if you configure policy settings to disable auto updates.

stewmang avatar Mar 10 '25 09:03 stewmang

We are experiencing the same problem:

1.) Evergreen Standalone Installer is downloaded from: https://developer.microsoft.com/en-gb/microsoft-edge/webview2?form=MA13LH#download

2.) Evergreen Standalone Installer is installed with the following commands: C:\WINDOWS\ccmcache\xx\Files\MicrosoftEdgeWebView2RuntimeInstallerX64.exe /silent /install

3.) Evergreen Standalone Installer, installation fails with following error: -1

  1. No information is written to following log during a failed install C:\ProgramData\Microsoft\EdgeUpdate\Log\MicrosoftEdgeUpdate.log

5.) Package works in offline test environment; package does not work in online production environment: This would suggest the installer isn't a fully standalone installer

6.) Package may work following failure if manually re-run from software centre. This again would suggest the installer isn't a fully standalone installer

tony-tone avatar Mar 25 '25 08:03 tony-tone

Just chiming in to keep the awareness of the issue going. Exact same issue as described above, same steps, same result. The only way around it seems to be making it visible in Software Centre and manually clicking "retry" (or installing manually of course), which is not a particularly desirable option.

arth0sz avatar Mar 26 '25 14:03 arth0sz

I mentioned this earlier, but it's kind of buried at this point.

Turning on "Run installation and uninstall program as 32-bit processes on 64-bit clients" works around whatever issue this is.

We use PatchMyPC and they've enabled this for the app and we've been using it without issue since this came up.

jones948 avatar Mar 26 '25 15:03 jones948

@jones948 It really did get buried, sorry I missed it and thank you! Worked perfectly.

arth0sz avatar Mar 26 '25 18:03 arth0sz