Does WebView2 works in Windows Recovery Environment (WinRE)?

Devanathan 6 Reputation points
2024-11-18T11:11:42.7566667+00:00

I want to install WebView2 in WinRE environment for our project. So I want to access some network sites, specifically MSFT sites from WinRE environment. So is it possible to install or Inject WebView2 into WinRE?

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,614 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,171 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daisy Zhou 26,401 Reputation points Microsoft Vendor
    2024-11-19T07:47:20.8933333+00:00

    Hello Devanathan,

    Thank you for posting in Q&A forum.

    Yes, but you need to create a WinRE image include Webview2, here are some steps you can try:

    1. Custom WinRE Image: You can create a custom WinRE image that includes the WebView2 runtime. This involves mounting the WinRE image, adding the necessary files, and then committing the changes. Here's a high-level overview:

    • Mount the WinRE image using DISM.

    • Copy the WebView2 runtime files into the mounted image.

    • Commit the changes and unmount the image.

    1. Network Access in WinRE: Ensure that your WinRE environment has network access. This might involve configuring network drivers and settings within the WinRE image.

    Reference:

    Customize Windows RE | Microsoft Learn

    Microsoft Edge WebView2 | Microsoft Edge Developer

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.