VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-12-02 05:57:58 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-12-02 23:51:22 (GMT)
commita3783ea7b65d7dad62d34dd9b04533860b506875 (patch)
treea41a7dd42569de4416de16134acae563eab3184f /src
parenta44c2a1e19ea8ba0140946f15cec2444961e06d3 (diff)
downloadVeraCrypt-a3783ea7b65d7dad62d34dd9b04533860b506875.zip
VeraCrypt-a3783ea7b65d7dad62d34dd9b04533860b506875.tar.gz
Windows: delete existing uninstall shortcut when performing upgrade/reinstall
Diffstat (limited to 'src')
-rw-r--r--src/Setup/Setup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Setup/Setup.c b/src/Setup/Setup.c
index 057b0b1..4e28681 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);
}