It's great to have this available as a predefined prerequisite, but as of AI 20.1, it needs some tweaks to work correctly.
On install, it fails with a CRC error if you chose the "download from URL" option. I think Microsoft frequently changes the file that's on the end of that URL. The Integrity Check option in AI needs to be turned off on this prerequisite for it to install successfully.
If WebView2 is already installed, the prerequisite fails to detect it under some circumstances. It's configured to look for only one registry key, but as per here:
https://learn.microsoft.com/en-us/micro ... -installed
there are 4 that should be checked to detect per-machine and per-user WebView2 installations on 32- and 64-bit. (Actually 2 of them seem to be the same, so I guess only 3.)
- webview2 prereq.PNG (60.53KiB)Viewed 41668 times