VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Setup
diff options
context:
space:
mode:
authorcsware <email@cs-ware.de>2018-12-02 05:43:48 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-12-02 05:43:48 (GMT)
commite0049f601aca32e4dd5278d3ebe70d4e031e742f (patch)
tree9feb38b83f245a7e3f198cadd235026695aa4be9 /src/Setup
parente03068c372861da96287adabc56c5b228a64dd67 (diff)
downloadVeraCrypt-e0049f601aca32e4dd5278d3ebe70d4e031e742f.zip
VeraCrypt-e0049f601aca32e4dd5278d3ebe70d4e031e742f.tar.gz
Do not create uninstall shortcut in startmenu (#381)
Creating such a start menu entry is a leftover of the ancient Win 3.x time where there was no central control panel for removing programs. Also see the Windows guidelines, where creating an uninstall shortcut is discouraged: https://msdn.microsoft.com/en-us/library/ms954377.aspx Signed-off-by: Sven Strickroth <email@cs-ware.de>
Diffstat (limited to 'src/Setup')
-rw-r--r--src/Setup/Setup.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/Setup/Setup.c b/src/Setup/Setup.c
index 3c63836..057b0b1 100644
--- a/src/Setup/Setup.c
+++ b/src/Setup/Setup.c
@@ -1709,11 +1709,6 @@ BOOL DoShortcutsUninstall (HWND hwndDlg, wchar_t *szDestDir)
if (StatDeleteFile (szTmp2, FALSE) == FALSE)
goto error;
- StringCbPrintfW (szTmp2, sizeof(szTmp2), L"%s%s", szLinkDir, L"\\Uninstall VeraCrypt.lnk");
- RemoveMessage (hwndDlg, szTmp2);
- if (StatDeleteFile (szTmp2, FALSE) == FALSE)
- goto error;
-
StringCbPrintfW (szTmp2, sizeof(szTmp2), L"%s%s", szLinkDir, L"\\VeraCrypt User's Guide.lnk");
StatDeleteFile (szTmp2, FALSE);
@@ -1823,19 +1818,6 @@ BOOL DoShortcutsInstall (HWND hwndDlg, wchar_t *szDestDir, BOOL bProgGroup, BOOL
else
goto error;
- StringCbPrintfW (szTmp, sizeof(szTmp), L"%s%s", szDir, L"VeraCrypt Setup.exe");
- StringCbPrintfW (szTmp2, sizeof(szTmp2), L"%s%s", szLinkDir, L"\\Uninstall VeraCrypt.lnk");
- if (GetSystemDirectory (szTmp3, ARRAYSIZE(szTmp3)))
- {
- StringCbCatW (szTmp3, sizeof(szTmp3), L"\\control.exe");
- }
- else
- StringCbCopyW(szTmp3, sizeof(szTmp3), L"C:\\Windows\\System32\\control.exe");
-
- IconMessage (hwndDlg, szTmp2);
- if (CreateLink (szTmp3, L"appwiz.cpl", szTmp2, szTmp, 0) != S_OK)
- goto error;
-
StringCbPrintfW (szTmp2, sizeof(szTmp2), L"%s%s", szLinkDir, L"\\VeraCrypt User's Guide.lnk");
StatDeleteFile (szTmp2, FALSE);
}