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

Windows: Make Travel Disk contains 32-bit and arm64 binaries when VeraCrypt installed using MSI

This commit is contained in:
Mounir IDRASSI
2022-02-09 22:37:22 +01:00
parent 2da115ffb4
commit 302dc37fb9
12 changed files with 1412 additions and 1033 deletions

30
src/COMReg/COMReg.cpp Normal file
View File

@@ -0,0 +1,30 @@
#include "Tcdefs.h"
#include <windows.h>
#include "SelfExtract.h"
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
wchar_t SetupFilesDir[TC_MAX_PATH];
wchar_t *s;
UNREFERENCED_PARAMETER(hInstance);
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(nCmdShow);
if (lpCmdLine[0] == L'/' && lpCmdLine[1] == L'p')
{
MessageBox(NULL, L"",L"",0);
SelfExtractStartupInit();
GetModuleFileName (NULL, SetupFilesDir, ARRAYSIZE (SetupFilesDir));
s = wcsrchr (SetupFilesDir, L'\\');
if (s)
s[1] = 0;
/* Create self-extracting package */
MakeSelfExtractingPackage (NULL, SetupFilesDir, TRUE);
}
return 0;
}