MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Samples / InstallComplete

Method InstallComplete

SampleApps/WebView2APISample/AppWindow.cpp:3060–3081  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3058}
3059
3060void AppWindow::InstallComplete(int return_code)
3061{
3062 if (!m_isClosed)
3063 {
3064 if (return_code == 0)
3065 {
3066 RunAsync([this] { InitializeWebView(); });
3067 }
3068 else if (return_code == 1)
3069 {
3070 MessageBox(
3071 m_mainWindow, L"WebView Runtime failed to Install",
3072 L"WebView Runtime Installation status", MB_OK);
3073 }
3074 else if (return_code == 2)
3075 {
3076 MessageBox(
3077 m_mainWindow, L"WebView Bootstrapper failled to download",
3078 L"WebView Bootstrapper Download status", MB_OK);
3079 }
3080 }
3081}

Callers 1

DownloadAndInstallWV2RTFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected