Support tip: Bulk installing WebView2 Runtime on Windows 10 devices

Posted by

This post has been republished via RSS; it originally appeared at: Microsoft Tech Community - Latest Blogs - .

Windows 10 devices currently don’t have WebView2 Runtime pre-installed. This means applications that want to leverage the new WebView2 controls, such as the upcoming new version of Take a Test, are unable to until WebView2 Runtime is installed. IT admins can manually download Runtime from WebView2 - Microsoft Edge Developer and install it as administrator on each device. For Intune admins looking for an automated way to deploy WebView2 Runtime, refer to the following guidelines which leverages Win32 app management capabilities.

 

Note: For the Take a Test app, if the WebView2 Runtime is not installed on a device, the app will fall back to using legacy System XAML WebView controls.

 

  1. Download the Evergreen standalone installer from WebView2 - Microsoft Edge Developer. For this guide, we downloaded the x64 standalone installer.

    The Evergreen installer screen.The Evergreen installer screen.

  2. Create a separate folder and place the downloaded installer file in it (example folder name: Runtime download). Make sure there are no other files in this folder.

  3. Create a new folder for the .intunewin file you will create, which is needed to deploy Win32 apps (example folder name: Intunewin destination).

  4. Download the Microsoft Win32 Content Prep Tool from GitHub - Microsoft-Win32-Content-Prep-Tool. This tool is used to wrap the Win32 app so that it can then be uploaded to Intune. Unzip the file and then copy the file path to the folder containing IntuneWinAppUtil.exe.

    A screenshot of downloading the Microsoft-Win32-Content-Prep-Tool in GitHub.A screenshot of downloading the Microsoft-Win32-Content-Prep-Tool in GitHub.

    A screenshot of copying the file path of the Microsoft-Win32-Content-Prep-Tool on the desktop.A screenshot of copying the file path of the Microsoft-Win32-Content-Prep-Tool on the desktop.

  5. Open the Command Prompt and type cd followed by the path name to the folder containing IntuneWinAppUtil.exe. Then run the file.

    A screenshot of the Command Prompt screen utilizing the Microsoft-Win32-Content-Prep-Tool to specify the folder IntuneWinAppUtil.exe.A screenshot of the Command Prompt screen utilizing the Microsoft-Win32-Content-Prep-Tool to specify the folder IntuneWinAppUtil.exe.

  6. Type in the information for the source folder (Step 2), setup file, and output folder (Step 3).

    A screenshot of the Command Prompt screen with the source folder, setup file, and output folders specified.A screenshot of the Command Prompt screen with the source folder, setup file, and output folders specified.

  7. Open Intune and navigate to Apps > Add and select Windows app (Win32) as the App type.

    A screenshot of the Select app type pane in the Apps, All apps screen in the Endpoint Manager admin center.A screenshot of the Select app type pane in the Apps, All apps screen in the Endpoint Manager admin center.

  8. Select MicrosoftEdgeWebView2RuntimeInstallerX64.intunewin from the output folder you created.

    A screenshot of the MicrosoftEdgeWebView2RuntimeInstallerX64.intunewin file upload.A screenshot of the MicrosoftEdgeWebView2RuntimeInstallerX64.intunewin file upload.

  9. For the App information, populate the fields referencing the image below. Most fields should be auto populated. You may fill in Microsoft as the publisher.

    A screenshot of the App Information tab on the Add App screen in Intune.A screenshot of the App Information tab on the Add App screen in Intune.

  10. On the Program tab, provide the install and uninstall commands.

    The install command is:
    MicrosoftEdgeWebView2RuntimeInstallerX64.exe /silent /install​

    The uninstall command is:
    %programfiles(x86)%\Microsoft\EdgeWebView\Application\107.0.1418.35\Installer\setup.exe --force-uninstall --uninstall --msedgewebview --system-level --verbose-logging​

    Note that the uninstall prompt is version specific, so make sure you check the version of your Runtime.

    A screenshot of the Program tab on the Add App screen in Intune.A screenshot of the Program tab on the Add App screen in Intune.

  11. On the Requirements tab, select 64-bit and a minimum operating system.

    A screenshot of the Requirements tab on the Add App screen in Intune.A screenshot of the Requirements tab on the Add App screen in Intune.

  12. On the Detection rules tab, manually configure detection rules to check if Runtime is already installed on the device by checking the registry. If Runtime is already present, then nothing will happen.

    A screenshot of the Detection rules tab on the Add App screen in Intune.A screenshot of the Detection rules tab on the Add App screen in Intune.

    The Key path to check for is:
    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}​

    If you are installing Runtime for a 32-bit Windows, the Key Path is:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}​


    A screenshot of the Detection rule setup.A screenshot of the Detection rule setup.

  13. In the assignments tab, select the devices that you want to target the WebView2 Runtime to be installed on. If Runtime is already installed on the targeted devices, no action will occur. Once the WebView2 Runtime installation is complete (check with Device install status), it will enable Take a Test to leverage WebView2.

 

Reference Links:

 

If you have any questions, please leave a comment below or reach out to us on Twitter @IntuneSuppTeam.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.