VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Setup/SelfExtract.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-07-28 21:30:10 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-07-29 13:54:27 (GMT)
commit8288fecc0ad74624f489bbdf3fb71cb1a1fbf286 (patch)
tree8c3a52c28f417fcc2b3b12f33b60fe72c1ed6d27 /src/Setup/SelfExtract.c
parent7a94a05974376fede2f8496a13e28b3cde851016 (diff)
downloadVeraCrypt-8288fecc0ad74624f489bbdf3fb71cb1a1fbf286.zip
VeraCrypt-8288fecc0ad74624f489bbdf3fb71cb1a1fbf286.tar.gz
Windows: Add portable installer that only extra binaries without the need of administrative privileges for extraction.
Diffstat (limited to 'src/Setup/SelfExtract.c')
-rw-r--r--src/Setup/SelfExtract.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Setup/SelfExtract.c b/src/Setup/SelfExtract.c
index 18bc125..8c155c6 100644
--- a/src/Setup/SelfExtract.c
+++ b/src/Setup/SelfExtract.c
@@ -29,8 +29,11 @@
#define SRC_POS (__FUNCTION__ ":" TC_TO_STRING(__LINE__))
#endif
+#ifdef PORTABLE
+#define OutputPackageFile L"VeraCrypt Portable " _T(VERSION_STRING) L".exe"
+#else
#define OutputPackageFile L"VeraCrypt Setup " _T(VERSION_STRING) L".exe"
-
+#endif
#define MAG_START_MARKER "TCINSTRT"
#define MAG_END_MARKER_OBFUSCATED "T/C/I/N/S/C/R/C"
#define PIPE_BUFFER_LEN (4 * BYTES_PER_KB)
@@ -146,7 +149,11 @@ BOOL MakeSelfExtractingPackage (HWND hwndDlg, wchar_t *szDestDir)
if (!TCCopyFile (inputFile, outputFile))
{
handleWin32Error (hwndDlg, SRC_POS);
+#ifdef PORTABLE
+ PkgError (L"Cannot copy 'VeraCrypt Portable.exe' to the package");
+#else
PkgError (L"Cannot copy 'VeraCrypt Setup.exe' to the package");
+#endif
goto err;
}