VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Setup/Setup.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-12-02 06:57:58 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-12-03 00:51:22 +0100
commita3783ea7b65d7dad62d34dd9b04533860b506875 (patch)
treea41a7dd42569de4416de16134acae563eab3184f /src/Setup/Setup.c
parenta44c2a1e19ea8ba0140946f15cec2444961e06d3 (diff)
downloadVeraCrypt-a3783ea7b65d7dad62d34dd9b04533860b506875.tar.gz
VeraCrypt-a3783ea7b65d7dad62d34dd9b04533860b506875.zip
Windows: delete existing uninstall shortcut when performing upgrade/reinstall
Diffstat (limited to 'src/Setup/Setup.c')
-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 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);
}