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.
- Download the Evergreen standalone installer from WebView2 - Microsoft Edge Developer. For this guide, we downloaded the x64 standalone installer.
- 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.
- Create a new folder for the .intunewin file you will create, which is needed to deploy Win32 apps (example folder name: Intunewin destination).
- 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.
- Open the Command Prompt and type cd followed by the path name to the folder containing IntuneWinAppUtil.exe. Then run the file.
- Type in the information for the source folder (Step 2), setup file, and output folder (Step 3).
- Open Intune and navigate to Apps > Add and select Windows app (Win32) as the App type.
- Select MicrosoftEdgeWebView2RuntimeInstallerX64.intunewin from the output folder you created.
- 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.
- 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. - On the Requirements tab, select 64-bit and a minimum operating system.
- 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.
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}
- 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:
- Prepare a Win32 app to be uploaded to Microsoft Intune
- Add and assign Win32 apps to Microsoft Intune
- Distribute your app and the WebView2 Runtime
If you have any questions, please leave a comment below or reach out to us on Twitter @IntuneSuppTeam.