mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Modifications to remove all TrueCrypt references in names. generate new GUIDs for VeraCrypt. Replace "TRUE" by "VERA" in volume headers and driver magic word.
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
#include "Language.h"
|
||||
#include "Resource.h"
|
||||
|
||||
#define OutputPackageFile "TrueCrypt Setup " VERSION_STRING ".exe"
|
||||
#define OutputPackageFile "VeraCrypt Setup " VERSION_STRING ".exe"
|
||||
|
||||
#define MAG_START_MARKER "TCINSTRT"
|
||||
#define MAG_END_MARKER_OBFUSCATED "T/C/I/N/S/C/R/C"
|
||||
@@ -57,19 +57,19 @@ static void DeobfuscateMagEndMarker (void)
|
||||
|
||||
static void PkgError (char *msg)
|
||||
{
|
||||
MessageBox (NULL, msg, "TrueCrypt", MB_ICONERROR | MB_SETFOREGROUND | MB_TOPMOST);
|
||||
MessageBox (NULL, msg, "VeraCrypt", MB_ICONERROR | MB_SETFOREGROUND | MB_TOPMOST);
|
||||
}
|
||||
|
||||
|
||||
static void PkgWarning (char *msg)
|
||||
{
|
||||
MessageBox (NULL, msg, "TrueCrypt", MB_ICONWARNING | MB_SETFOREGROUND | MB_TOPMOST);
|
||||
MessageBox (NULL, msg, "VeraCrypt", MB_ICONWARNING | MB_SETFOREGROUND | MB_TOPMOST);
|
||||
}
|
||||
|
||||
|
||||
static void PkgInfo (char *msg)
|
||||
{
|
||||
MessageBox (NULL, msg, "TrueCrypt", MB_ICONINFORMATION | MB_SETFOREGROUND | MB_TOPMOST);
|
||||
MessageBox (NULL, msg, "VeraCrypt", MB_ICONINFORMATION | MB_SETFOREGROUND | MB_TOPMOST);
|
||||
}
|
||||
|
||||
|
||||
@@ -165,7 +165,7 @@ static int CompressBuffer (char *out, char *in, int len)
|
||||
|
||||
if (!CreateProcess (NULL, "gzip --best", NULL, NULL, TRUE, 0, NULL, NULL, &startupInfo, &procInfo))
|
||||
{
|
||||
PkgError ("Error: Cannot run gzip.\n\nBefore you can create a self-extracting TrueCrypt package, you need to have the open-source 'gzip' compression tool placed in any directory in the search path for executable files (for example, in 'C:\\Windows\\').\n\nNote: gzip can be freely downloaded e.g. from www.gzip.org");
|
||||
PkgError ("Error: Cannot run gzip.\n\nBefore you can create a self-extracting VeraCrypt package, you need to have the open-source 'gzip' compression tool placed in any directory in the search path for executable files (for example, in 'C:\\Windows\\').\n\nNote: gzip can be freely downloaded e.g. from www.gzip.org");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -236,12 +236,12 @@ BOOL MakeSelfExtractingPackage (HWND hwndDlg, char *szDestDir)
|
||||
strcpy (outputFile, szDestDir);
|
||||
strncat (outputFile, OutputPackageFile, sizeof (outputFile) - strlen (outputFile) - 1);
|
||||
|
||||
// Clone 'TrueCrypt Setup.exe' to create the base of the new self-extracting archive
|
||||
// Clone 'VeraCrypt Setup.exe' to create the base of the new self-extracting archive
|
||||
|
||||
if (!TCCopyFile (inputFile, outputFile))
|
||||
{
|
||||
handleWin32Error (hwndDlg);
|
||||
PkgError ("Cannot copy 'TrueCrypt Setup.exe' to the package");
|
||||
PkgError ("Cannot copy 'VeraCrypt Setup.exe' to the package");
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user