mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-07-06 04:58:01 -05:00
Windows: Implement TESTSIGNING build configuration that allows running under Windows Vista,7, 8 and 8.1.
This commit is contained in:
+25
-25
@@ -2944,31 +2944,6 @@ int WINAPI wWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, wchar_t *lpsz
|
||||
|
||||
SelfExtractStartupInit();
|
||||
|
||||
#ifdef PORTABLE
|
||||
lpszTitle = L"VeraCrypt Portable";
|
||||
#else
|
||||
lpszTitle = L"VeraCrypt Setup";
|
||||
#endif
|
||||
/* Call InitApp to initialize the common code */
|
||||
InitApp (hInstance, NULL);
|
||||
|
||||
#ifndef PORTABLE
|
||||
if (IsAdmin () != TRUE)
|
||||
if (MessageBoxW (NULL, GetString ("SETUP_ADMIN"), lpszTitle, MB_YESNO | MB_ICONQUESTION) != IDYES)
|
||||
{
|
||||
FinalizeApp ();
|
||||
exit (1);
|
||||
}
|
||||
#endif
|
||||
/* Setup directory */
|
||||
{
|
||||
wchar_t *s;
|
||||
GetModuleFileName (NULL, SetupFilesDir, ARRAYSIZE (SetupFilesDir));
|
||||
s = wcsrchr (SetupFilesDir, L'\\');
|
||||
if (s)
|
||||
s[1] = 0;
|
||||
}
|
||||
|
||||
/* Parse command line arguments */
|
||||
|
||||
if (lpszCommandLine[0] == L'/')
|
||||
@@ -3001,6 +2976,31 @@ int WINAPI wWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, wchar_t *lpsz
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef PORTABLE
|
||||
lpszTitle = L"VeraCrypt Portable";
|
||||
#else
|
||||
lpszTitle = L"VeraCrypt Setup";
|
||||
#endif
|
||||
/* Call InitApp to initialize the common code */
|
||||
InitApp (hInstance, NULL);
|
||||
|
||||
#ifndef PORTABLE
|
||||
if (IsAdmin () != TRUE)
|
||||
if (MessageBoxW (NULL, GetString ("SETUP_ADMIN"), lpszTitle, MB_YESNO | MB_ICONQUESTION) != IDYES)
|
||||
{
|
||||
FinalizeApp ();
|
||||
exit (1);
|
||||
}
|
||||
#endif
|
||||
/* Setup directory */
|
||||
{
|
||||
wchar_t *s;
|
||||
GetModuleFileName (NULL, SetupFilesDir, ARRAYSIZE (SetupFilesDir));
|
||||
s = wcsrchr (SetupFilesDir, L'\\');
|
||||
if (s)
|
||||
s[1] = 0;
|
||||
}
|
||||
|
||||
if (bMakePackage)
|
||||
{
|
||||
/* Create self-extracting package */
|
||||
|
||||
Reference in New Issue
Block a user