From a3783ea7b65d7dad62d34dd9b04533860b506875 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 2 Dec 2018 06:57:58 +0100 Subject: Windows: delete existing uninstall shortcut when performing upgrade/reinstall --- src/Setup/Setup.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/Setup/Setup.c b/src/Setup/Setup.c index 057b0b13..4e286813 100644 --- a/src/Setup/Setup.c +++ b/src/Setup/Setup.c @@ -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); } -- cgit v1.2.3