extra vc check

This commit is contained in:
josc146 2023-07-09 12:18:51 +08:00
parent aec6ad636a
commit e930eb5967

View File

@ -366,7 +366,7 @@ export const checkDependencies = async (navigate: NavigateFunction) => {
AddToDownloadList('python-3.10.11-embed-amd64.zip', 'https://www.python.org/ftp/python/3.10.11/python-3.10.11-embed-amd64.zip'); AddToDownloadList('python-3.10.11-embed-amd64.zip', 'https://www.python.org/ftp/python/3.10.11/python-3.10.11-embed-amd64.zip');
}); });
} else if (depErrorMsg.includes('DepCheck Error')) { } else if (depErrorMsg.includes('DepCheck Error')) {
if (depErrorMsg.includes('vc_redist')) { if (depErrorMsg.includes('vc_redist') || depErrorMsg.includes('DLL load failed while importing')) {
toastWithButton(t('Microsoft Visual C++ Redistributable is not installed, would you like to download it?'), t('Download'), () => { toastWithButton(t('Microsoft Visual C++ Redistributable is not installed, would you like to download it?'), t('Download'), () => {
BrowserOpenURL('https://aka.ms/vs/16/release/vc_redist.x64.exe'); BrowserOpenURL('https://aka.ms/vs/16/release/vc_redist.x64.exe');
}); });