Windows: delete existing uninstall shortcut when performing upgrade/reinstall

This commit is contained in:
Mounir IDRASSI 2018-12-02 06:57:58 +01:00
parent a44c2a1e19
commit a3783ea7b6
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F
1 changed files with 3 additions and 0 deletions

View File

@ -1818,6 +1818,9 @@ BOOL DoShortcutsInstall (HWND hwndDlg, wchar_t *szDestDir, BOOL bProgGroup, BOOL
else
goto error;
StringCbPrintfW (szTmp2, sizeof(szTmp2), L"%s%s", szLinkDir, L"\\Uninstall VeraCrypt.lnk");
StatDeleteFile (szTmp2, FALSE);
StringCbPrintfW (szTmp2, sizeof(szTmp2), L"%s%s", szLinkDir, L"\\VeraCrypt User's Guide.lnk");
StatDeleteFile (szTmp2, FALSE);
}