diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2018-12-02 05:57:58 (GMT) |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2018-12-02 23:51:22 (GMT) |
commit | a3783ea7b65d7dad62d34dd9b04533860b506875 (patch) | |
tree | a41a7dd42569de4416de16134acae563eab3184f /src/Setup/Setup.c | |
parent | a44c2a1e19ea8ba0140946f15cec2444961e06d3 (diff) | |
download | VeraCrypt-a3783ea7b65d7dad62d34dd9b04533860b506875.zip VeraCrypt-a3783ea7b65d7dad62d34dd9b04533860b506875.tar.gz |
Windows: delete existing uninstall shortcut when performing upgrade/reinstall
Diffstat (limited to 'src/Setup/Setup.c')
-rw-r--r-- | src/Setup/Setup.c | 3 |
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); } |