diff --git a/MsixCore/msixmgr/InstallUI.cpp b/MsixCore/msixmgr/InstallUI.cpp index 0fe387ea1..c7d3b6a63 100644 --- a/MsixCore/msixmgr/InstallUI.cpp +++ b/MsixCore/msixmgr/InstallUI.cpp @@ -191,6 +191,23 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) PostQuitMessage(0); exit(0); break; + case WM_NOTIFY: + switch (((LPNMHDR)lParam)->code) + { + case EN_LINK: + ENLINK * enLinkInfo = (ENLINK *)lParam; + if (enLinkInfo->msg == WM_LBUTTONUP) + { + SendMessage(g_staticErrorDescHWnd, EM_EXSETSEL, 0, (LPARAM)&(enLinkInfo->chrg)); + + WCHAR url[MAX_PATH]; + SendMessage(g_staticErrorDescHWnd, EM_GETSELTEXT, 0, (LPARAM)&url); + + ShellExecute(NULL, L"open", url, NULL, NULL, SW_SHOWNORMAL); + } + break; + } + break; default: return DefWindowProc(hWnd, message, wParam, lParam); break; @@ -594,6 +611,8 @@ BOOL UI::CreateDisplayErrorText(HWND parentHWnd, RECT parentRect) parentRect.left + 50, parentRect.bottom - 110, 375, 80, parentHWnd, (HMENU)IDC_STATICERRORCONTROL, reinterpret_cast(GetWindowLongPtr(parentHWnd, GWLP_HINSTANCE)), NULL); + SendMessage(g_staticErrorDescHWnd, EM_SETEVENTMASK, 0, ENM_LINK); + SendMessage(g_staticErrorDescHWnd, EM_AUTOURLDETECT, (WPARAM)TRUE, (LPARAM)0); return TRUE; } diff --git a/MsixCore/msixmgr/msixmgr.rc b/MsixCore/msixmgr/msixmgr.rc index 6bc78684d..bcbffae69 100644 --- a/MsixCore/msixmgr/msixmgr.rc +++ b/MsixCore/msixmgr/msixmgr.rc @@ -118,8 +118,8 @@ BEGIN IDS_STRING_LOADING_PACKAGE_OPEN_ERROR "Cannot open app package" IDS_STRING_SIG_MISSING_ERROR "Ask the app developer for a new app package. This one isn't signed with a trusted certificate." IDS_STRING_ROOT_SIG_UNTRUSTED_ERROR "Either you need a new certificate installed for this app package, or you need a new app package with trusted certificates. Your system administrator or the app developer can help. A certificate chain processed, but terminated in a root certificate which isn't trusted." - IDS_STRING_CANNOT_OPEN_PACKAGE_ERROR "Unable to open package. Please go to aka.ms/msix for more information." - IDS_STRING_GENERIC_INSTALL_FAILED_ERROR "Unable to install package. Please go to aka.ms/msix for more information." + IDS_STRING_CANNOT_OPEN_PACKAGE_ERROR "Unable to open package. Please go to https://aka.ms/msix for more information." + IDS_STRING_GENERIC_INSTALL_FAILED_ERROR "Unable to install package. Please go to https://aka.ms/msix for more information." IDS_STRING_INVALID_TDF_ERROR "A Prerequisite for an install could not be satisfied." IDS_STRING_INVALID_ARCHITECTURE_ERROR "The deployment operation failed because the package targets the wrong processor architecture." IDS_STRING_PACKAGE_DOWNGRADE_ERROR "The package could not be installed because a higher version of this package is already installed."