From 2dc39a7c7e085d77a5b3505b15fd00111a6fff5e Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 16 Apr 2018 00:32:27 +0200 Subject: Windows: simplify installer logic by copying only binaries for the current architecture. --- src/Setup/Setup.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'src/Setup/Setup.h') diff --git a/src/Setup/Setup.h b/src/Setup/Setup.h index b29ad14a..12b4159f 100644 --- a/src/Setup/Setup.h +++ b/src/Setup/Setup.h @@ -27,14 +27,7 @@ static wchar_t *szFiles[]= L"AVeraCrypt.exe", L"AVeraCryptExpander.exe", L"AVeraCrypt Format.exe", - L"AVeraCrypt-x86.exe", - L"AVeraCryptExpander-x86.exe", - L"AVeraCrypt Format-x86.exe", - L"AVeraCrypt-x64.exe", - L"AVeraCryptExpander-x64.exe", - L"AVeraCrypt Format-x64.exe", L"Averacrypt.sys", - L"Averacrypt-x64.sys", L"Dveracrypt.sys", L"AVeraCrypt Setup.exe", L"XLanguages.zip", @@ -59,6 +52,18 @@ static wchar_t *szCompressedFiles[]= L"docs.zip" }; +// Specifies what legacy files to remove during install +static wchar_t *szLegacyFiles[]= +{ + L"VeraCrypt-x86.exe", + L"VeraCryptExpander-x86.exe", + L"VeraCrypt Format-x86.exe", + L"VeraCrypt-x64.exe", + L"VeraCryptExpander-x64.exe", + L"VeraCrypt Format-x64.exe", + L"veracrypt-x64.sys", +}; + #define FILENAME_64BIT_DRIVER L"veracrypt-x64.sys" #define NBR_COMPRESSED_FILES (sizeof(szCompressedFiles) / sizeof(szCompressedFiles[0])) -- cgit v1.2.3