1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 19:08:26 -06:00

Windows: Install CHM User Guide instead of PDF one. Delete existing PDF when upgrading.

This commit is contained in:
Mounir IDRASSI
2017-06-04 18:42:03 +02:00
parent b878659810
commit 1ad425e4e1
6 changed files with 57 additions and 15 deletions

View File

@@ -1016,6 +1016,29 @@ err:
}
}
// remove PDF from previous version if any
if (bUninstall == FALSE)
{
WIN32_FIND_DATA f;
HANDLE h;
SetCurrentDirectory (szDestDir);
h = FindFirstFile (L"VeraCrypt User Guide*.pdf", &f);
if (h != INVALID_HANDLE_VALUE)
{
do
{
StatDeleteFile (f.cFileName, TRUE);
}
while (FindNextFile(h, &f) != 0);
FindClose (h);
}
SetCurrentDirectory (SetupFilesDir);
}
// Language pack
if (bUninstall == FALSE)
{
@@ -1036,7 +1059,7 @@ err:
SetCurrentDirectory (SetupFilesDir);
SetCurrentDirectory (L"Setup files");
h = FindFirstFile (L"VeraCrypt User Guide.*.pdf", &f);
h = FindFirstFile (L"VeraCrypt User Guide.*.chm", &f);
if (h != INVALID_HANDLE_VALUE)
{
wchar_t d[MAX_PATH*2];