anders_k
f69251d87e
(C) 2021
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7245 212acab6-be3b-0410-9dea-997c60f758d6
2021-01-01 20:27:52 +00:00
anders_k
89fb04d0f6
(C) 2020
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7148 212acab6-be3b-0410-9dea-997c60f758d6
2020-01-01 21:13:57 +00:00
anders_k
b19a694ad5
Allow up to 4 GiB of 3rd-party appended data.
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7098 212acab6-be3b-0410-9dea-997c60f758d6
2019-06-16 14:08:43 +00:00
anders_k
797e745de5
Added LoadAndSetImage instruction
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7078 212acab6-be3b-0410-9dea-997c60f758d6
2019-02-03 20:53:13 +00:00
anders_k
62d9a4c2f7
(C) 2019
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7072 212acab6-be3b-0410-9dea-997c60f758d6
2019-01-07 14:30:06 +00:00
anders_k
49471b3d84
(C) 2018
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6962 212acab6-be3b-0410-9dea-997c60f758d6
2018-01-02 01:51:26 +00:00
anders_k
3659de8e37
(C) 2017
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6834 212acab6-be3b-0410-9dea-997c60f758d6
2017-01-02 03:51:39 +00:00
anders_k
1967160500
Copyright 2016
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6720 212acab6-be3b-0410-9dea-997c60f758d6
2016-03-11 19:16:38 +00:00
anders_k
252adb2f39
Use myWriteFile helper function in exehead
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6628 212acab6-be3b-0410-9dea-997c60f758d6
2015-10-31 16:27:34 +00:00
anders_k
1c1d1d5e12
Fixed all VS2015 warnings except C4577 ('noexcept' used with no exception handling mode specified)
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6627 212acab6-be3b-0410-9dea-997c60f758d6
2015-10-30 03:55:30 +00:00
anders_k
6d534850e7
* TOK_PLUGINDIR path can't be const because of PATH_CONVERT(path) on POSIX
...
* Remove truncate_cast usage from fileform.c
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6613 212acab6-be3b-0410-9dea-997c60f758d6
2015-09-19 14:07:14 +00:00
anders_k
940277d9d8
* block_header::offset is now pointer sized in exehead
...
* Wininet.h -> wininet.h for POSIX
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6608 212acab6-be3b-0410-9dea-997c60f758d6
2015-09-18 15:55:56 +00:00
anders_k
286edd20c4
* Basic System::Call support when compiling with 64-bit MinGW/GCC toolchain
...
* Win64 fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6607 212acab6-be3b-0410-9dea-997c60f758d6
2015-09-17 14:30:07 +00:00
anders_k
9ff4b3ef43
(C) 2015
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6577 212acab6-be3b-0410-9dea-997c60f758d6
2015-02-06 21:43:39 +00:00
anders_k
c75a00bbe7
2014 and fixed some minor typos
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6478 212acab6-be3b-0410-9dea-997c60f758d6
2014-05-13 15:51:45 +00:00
anders_k
d799ee53d7
Basic Win64 support (MSVC)
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6439 212acab6-be3b-0410-9dea-997c60f758d6
2014-02-08 00:13:52 +00:00
anders_k
e63fa6c53b
Win64 fixes
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6413 212acab6-be3b-0410-9dea-997c60f758d6
2013-09-06 23:48:59 +00:00
anders_k
19b9a3e65a
Use ReadFile helper function in exehead
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6395 212acab6-be3b-0410-9dea-997c60f758d6
2013-07-25 19:18:34 +00:00
anders_k
bd591bf196
200? -> 2013
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6352 212acab6-be3b-0410-9dea-997c60f758d6
2013-05-17 19:31:36 +00:00
anders_k
2d99d7ad3e
Removed unused variables and fixed GCC warnings
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6259 212acab6-be3b-0410-9dea-997c60f758d6
2012-09-08 02:50:09 +00:00
anders_k
cf4e5cf132
Fix a lot of MinGW/GCC warnings
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6168 212acab6-be3b-0410-9dea-997c60f758d6
2011-11-09 18:12:57 +00:00
wizou
752d7d239a
Jim Park's Unicode NSIS merging - Step 1 : switch to TCHARs where relevant.
...
Compiler output is identical before & after this step
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/branches/wizou@6036 212acab6-be3b-0410-9dea-997c60f758d6
2010-03-24 17:22:56 +00:00
kichik
0aed504f4a
happy new year!
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5917 212acab6-be3b-0410-9dea-997c60f758d6
2009-02-01 14:44:30 +00:00
kichik
130074428e
revert r5314 - if the banner plug-in shows IDD_VERIFY in its own thread and that thread sets it as the foreground window because of the WS_VISIBLE style, the main thread loses the ability to set the foreground window. this causes the installer window to start on the background if banner is used in .oninit.
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5915 212acab6-be3b-0410-9dea-997c60f758d6
2009-02-01 12:32:34 +00:00
kichik
2efd32160b
fixed bug #1874297 - Error decompressing data! Corrupted installer?
...
problem was that decompression ended prematurely. instead of waiting for zlib to return Z_STREAM_END, it checked if no more output was required. this could cause a case where zlib wouldn't read its entire stream. in this particular case, the compressed headers were 0x4001 bytes long and compressed data input buffer size is only 0x4000. instead of waiting for another run of inflate() to read the last byte, which is probably eof, _dodecmop() broke the loop and didn't read that extra byte. since loadHeaders() relays on _dodecomp() to read the entire header so it can calculate where the data block begins, all reads from the data block suddenly became off by one, causing "decompression errors".
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5557 212acab6-be3b-0410-9dea-997c60f758d6
2008-02-23 16:28:23 +00:00
kichik
2675599a31
happy new year!
...
bug #1855805
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5429 212acab6-be3b-0410-9dea-997c60f758d6
2007-12-22 09:41:57 +00:00
kichik
fb217c5b5c
declare real calc_percent()'s code just once
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5355 212acab6-be3b-0410-9dea-997c60f758d6
2007-11-09 15:30:08 +00:00
kichik
32854c2021
fixed a bug that where __ensuredata processed window messages using MessageLoop.
...
this could cause synchronization issues when data is decompressed in a page's leave function and the user clicks the next button twice really fast or on a slow computer.
WM_COMMAND would be sent twice and so DialogProc could execute the leave function while the installation thread is running causing interpreter havoc.
for more details:
http://forums.winamp.com/showthread.php?s=&threadid=274333
as always, a few size optimizations were thrown in the loop and the fix actually makes the code smaller
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5313 212acab6-be3b-0410-9dea-997c60f758d6
2007-10-03 22:07:16 +00:00
kichik
b0978fc844
move SetDetailsPrint flag to g_exec_flag and added a lastused capability to EW_SETFLAG
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5268 212acab6-be3b-0410-9dea-997c60f758d6
2007-09-08 17:20:11 +00:00
kichik
f4c9414545
added $EXEFILE
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5120 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-24 19:09:51 +00:00
kichik
0ef9426b45
added $EXEPATH
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5105 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-19 21:38:11 +00:00
kichik
08650c9384
size optimization - GlobalFree isn't called in any other case, no need here as well
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4977 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-04 19:53:58 +00:00
kichik
0243b40a1d
according to MSDN, passing NULL as hModule to GetModuleFileName will get the path for the executable of the process so there's no need for g_hInstance
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4904 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 22:24:26 +00:00
kichik
8ecaea19a5
set silent flag as early as possible, so most crc errors won't appear
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4902 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 21:29:03 +00:00
kichik
c145d69e55
2006 -> 2007
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4847 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-13 17:28:23 +00:00
joostverburg
e497d771b1
* The LZMA compression module for NSIS is now licensed under the Common Public License version 1.0
...
* Added license and copyright notice to every source file
* The new COPYING file and license section in the Users Manual list the terms of all relevant licenses
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4787 212acab6-be3b-0410-9dea-997c60f758d6
2006-10-28 19:45:02 +00:00
kichik
3e561714e4
fixed bug #1504758 - CRC32 implementation use potentially non-32bit types
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4697 212acab6-be3b-0410-9dea-997c60f758d6
2006-06-16 14:12:04 +00:00
kichik
d6367e4125
my_GlobalAlloc no longer reduces the size
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4255 212acab6-be3b-0410-9dea-997c60f758d6
2005-09-09 16:08:44 +00:00
kichik
8e3f7ed623
size optimization
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4254 212acab6-be3b-0410-9dea-997c60f758d6
2005-09-09 15:21:45 +00:00
kichik
54bb163a4f
don't rely on WM_DESTROY to update extraction status to 100%
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3875 212acab6-be3b-0410-9dea-997c60f758d6
2005-01-14 16:54:44 +00:00
kichik
5364b5da62
initialize g_db_hFile with INVALID_HANDLE_VALUE so the handle 0 will not be closed in CleanUp() if loadHeaders() is never called
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3634 212acab6-be3b-0410-9dea-997c60f758d6
2004-08-20 14:16:11 +00:00
kichik
42f134860a
Fixed the cause of bug #1004496 - Install with /NCRC hangs
...
The hanging disappeared along with the removal of the threaded lzma decoder, but the cause stayed. When the user specified /NCRC on the command line, loadHeaders reported the compressed data size to be 4 bytes larger than it really is. Instead of checking the header flags, it checked the combined flags (command line and header), concluded CRC checksum is disabled and therefore didn't subtract the 4 bytes of the CRC checksum from the compressed data size.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3613 212acab6-be3b-0410-9dea-997c60f758d6
2004-08-07 15:47:12 +00:00
kichik
c50e17955c
case changes for #include lines for cross compiling (Michiel Ephraim)
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3558 212acab6-be3b-0410-9dea-997c60f758d6
2004-06-11 11:24:09 +00:00
kichik
3f483e0163
Converted the LZMA decoder to a state machine like zlib and bzip2. The new method is smaller and safer because there is no need for hideous thread synchronization. The new method also works on Windows 95, unlike the previous one which was using InterlockedCompareExchange.
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3527 212acab6-be3b-0410-9dea-997c60f758d6
2004-04-16 22:44:03 +00:00
kichik
f4a1f17299
- updated the makefiles and code to allow compliation with MinGW once again (some of patch #875485 by perditionc)
...
- fixed errors and warnings given by gcc
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3513 212acab6-be3b-0410-9dea-997c60f758d6
2004-03-12 20:43:54 +00:00
kichik
d18cea205c
- lzma exehead is now 34kb instead of 34.5kb thanks to the new LZMA C SDK and should be much faster due to removal of critical section usage (not tested too much, test before usage)
...
- applied some parts of patch #875485
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3508 212acab6-be3b-0410-9dea-997c60f758d6
2004-03-06 18:37:19 +00:00
kichik
bd25e070c8
- compiles without PSDK again
...
- moved all defines that are missing without PSDK to Platform.h
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3436 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-30 22:04:10 +00:00
kichik
851032d22a
fixed some compile errors caused by removing some config.h options
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3429 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-29 01:23:24 +00:00
kichik
dd8a4388ac
fixed a bunch of bugs that caused lzma and bzip2 not to function without solid compression
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3362 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-06 00:53:12 +00:00
kichik
acf798c33b
- Made CRC checking from CD-ROM or a network drive faster
...
- Some more optimizations
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3225 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-28 17:57:59 +00:00