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
kichik
594c3ed0f6
- First LZMA enhanced NSIS version - experimental
...
- Added SetCompressorDictSize (only works for LZMA)
- Added SetCompressionLevel (only "works" for zlib and bzip2) - doesn't work for now
- Section is only supposed to get 4 parameters if /o is specified
- Updated version numbers
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3190 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-24 00:08:58 +00:00
kichik
8380534b1d
- Fixed a crash caused by clicking cancel on a directory page (thanks pengyou)
...
- Fixed some extraction progress issues
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2900 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-11 20:46:20 +00:00
kichik
bb927a6230
- fixed a typo in inner langstrings name - [un]LicenseTextRB
...
- Finnish language files updated
- made SetStlColors able to set background color with /BRANDING
- some optimizations
- fixed progress showing for WriteUninstaller
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2870 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-07 08:53:22 +00:00
kichik
74ea2dc585
* PageEx - every page can be used everywhere and as many times as needed
...
* DirVar - easy way to add another dir page
* default strings in the language file (Page directory is enough, no need for DirText)
* strings from the language file are now LangStrings that can be used in the script
* no more /LANG - one string for all languages
* any lang strings can be used everywhere, installer or uninstaller (no un.)
* no more unprocessed strings - variables can be used almost everywhere (except in licenseData and InstallDirRegKey)
* DirText parm for browse dialog text
* SetBkColor -> SetCtlColors - can now set text color too
* fixed SetOutPath and File /r bug
* fixed File /a /oname bug
* added $_CLICK for pages
* added quotes support in lang files (patch #752620 )
* extraction progress
* separate RTL dialogs for RTL langs (improved RTL too)
* InstallOptions RTL
* StartMenu RTL
* fixed RegDLL?
* added IfSilent and SetSilent (SetSilent only works from .onInit)
* fixed verify window (it never showed) (bug #792494 )
* fixed ifnewer readonly file problem (patch #783782 )
* fixed wininit.ini manipulation when there is another section after [rename]
* fixed some ClearType issues
* fixed a minor bug in the resource editor
* fixed !ifdef/!endif stuff, rewritten
* lots of code and comments clean ups
* got rid of some useless exceptions handling and STL classes (still much more to go)
* lots of optimizations, of course ;)
* updated system.dll with support for GUID, WCHAR, and fast VTable calling (i.e. COM ready)
* minor bug fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2823 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-04 18:25:57 +00:00
kichik
048b077782
Fix invalid CRC messages for data < 512
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2768 212acab6-be3b-0410-9dea-997c60f758d6
2003-07-24 13:25:37 +00:00
kichik
7f1e93c85e
Fixed CRC off and whole compression
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2763 212acab6-be3b-0410-9dea-997c60f758d6
2003-07-22 08:33:25 +00:00
kichik
4a1c9f3e77
Back to normal messages
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2750 212acab6-be3b-0410-9dea-997c60f758d6
2003-07-18 21:33:58 +00:00
kichik
caa31c9cd5
- Fixed all known problems with temporary files and directoroes
...
- Command line switches work again (/NCRC and /S)
- GetTempFileName now takes another argument as base directory (default is $TEMP)
- Message boxes work from .onGUIEnd
- Some more optimizations
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2739 212acab6-be3b-0410-9dea-997c60f758d6
2003-07-18 14:22:17 +00:00
kichik
711c4c19a2
shaved more than 500 bytes from zlib, zlib exehead now 33.5k
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2722 212acab6-be3b-0410-9dea-997c60f758d6
2003-07-16 12:28:32 +00:00
ramon18
054db45f63
Special section of data for user vars, whitch allow compiler to assign the right size and no code needed in exehead for mem allocs. Warnings for unreferenced user vars. (758773) Error, if temp file not available, now directory is created if not exist.
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2673 212acab6-be3b-0410-9dea-997c60f758d6
2003-06-23 22:40:11 +00:00
ramon18
ab91077049
Dynamic allocation of needed user variables (exehead grew 512 bytes).
...
Independed user vars in uninstaller and installer
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2656 212acab6-be3b-0410-9dea-997c60f758d6
2003-06-17 23:59:13 +00:00
kichik
8f849c07e5
IfErrors clears the error flag again
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2400 212acab6-be3b-0410-9dea-997c60f758d6
2003-03-30 15:08:24 +00:00
kichik
34e75bfd21
Buttons from focused license text fixed (return will not work if next button not enabled and escape will work as cancel)
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2391 212acab6-be3b-0410-9dea-997c60f758d6
2003-03-29 13:39:48 +00:00
kichik
bad48f1a0a
Some space saving changes, /NOCUSTOM and /COMPONENTSONLYONCUSTOM work together and infastructures for future changes
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2338 212acab6-be3b-0410-9dea-997c60f758d6
2003-03-18 20:36:52 +00:00
kichik
de557f6037
BGGradient & minize solution
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2258 212acab6-be3b-0410-9dea-997c60f758d6
2003-03-09 19:49:19 +00:00
kichik
5e9ede6d31
+ Sections can be unselected in silent mode too
...
+ Some documentation fixes
+ Transition between a normal page and a custom page no longer causes a flicker (between two custom pages it still does)
+ The completed sub-caption shows again
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1853 212acab6-be3b-0410-9dea-997c60f758d6
2002-11-30 13:15:49 +00:00
kichik
6c51b44657
New paging system. All scripts must be updated, but it sure is worth it. InstallOptions has two new functions initDialog and show. Docs massively updated.
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1536 212acab6-be3b-0410-9dea-997c60f758d6
2002-11-01 20:34:55 +00:00
kichik
b18b76f59b
32 bytes down
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1392 212acab6-be3b-0410-9dea-997c60f758d6
2002-10-12 17:08:09 +00:00
kichik
62abf21381
bzip2 header down to 34KB, 54 bytes away from 34.5KB zlib. Fixed a bug with ReadRegStr and $0.
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1249 212acab6-be3b-0410-9dea-997c60f758d6
2002-10-01 14:13:23 +00:00
justin1014
6a5694d64a
made bzip2 mode slightly smaller by making reinit stuff not necessary
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1245 212acab6-be3b-0410-9dea-997c60f758d6
2002-10-01 06:30:38 +00:00
justin1014
ed3a8ba913
even smaller bzip2 code
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1244 212acab6-be3b-0410-9dea-997c60f758d6
2002-10-01 02:27:39 +00:00
justin1014
77cb319b8c
made bzip2 smaller than zlib mode !!!
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1241 212acab6-be3b-0410-9dea-997c60f758d6
2002-10-01 01:57:14 +00:00
justin1014
d85513f1c3
cut a few bytes of bzip2 mode
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1225 212acab6-be3b-0410-9dea-997c60f758d6
2002-09-30 16:49:21 +00:00
kichik
bb60e32aaa
Added user defined multilingual strings. Define using LangString [un.]name lang_id string, use with $(name). Can't be used inside other strings.
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1214 212acab6-be3b-0410-9dea-997c60f758d6
2002-09-29 20:25:15 +00:00
justin1014
4dc468b307
bzip2 mode reduced down to 36.5kb. yay.
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1205 212acab6-be3b-0410-9dea-997c60f758d6
2002-09-27 04:05:26 +00:00
justin1014
83655f8352
more bzip2 code reduction, disabled data reduction for now so we can hit targets
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1204 212acab6-be3b-0410-9dea-997c60f758d6
2002-09-27 03:38:41 +00:00
justin1014
9e53aab9b1
made bzip2 mode have 336 bytes less data, but about 60 bytes more code.
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1201 212acab6-be3b-0410-9dea-997c60f758d6
2002-09-27 03:16:43 +00:00
justin1014
ae0f70cd15
made bzip2 extraction slightly more pedantic
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1180 212acab6-be3b-0410-9dea-997c60f758d6
2002-09-25 03:44:17 +00:00
justin1014
997ff07df8
another 30 or so bytes saved, by modifying readSelfFile to do all length checking. Not sure if I broke anything though =)
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1179 212acab6-be3b-0410-9dea-997c60f758d6
2002-09-25 03:34:30 +00:00
eccles
83a4213bfb
60 bytes saved.
...
zlib exehead is now 35.5K.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1172 212acab6-be3b-0410-9dea-997c60f758d6
2002-09-24 23:26:55 +00:00
eccles
602430bedb
Now *really* only shows the unpacking dialog if the NSIS window hasn't been created yet
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1115 212acab6-be3b-0410-9dea-997c60f758d6
2002-09-21 17:17:14 +00:00
kichik
fc2c45cb92
Now only shows the unpacking dialog if the NSIS window hasn't been created yet
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1113 212acab6-be3b-0410-9dea-997c60f758d6
2002-09-21 15:17:42 +00:00
justin1014
0001910df8
more updates yay
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1109 212acab6-be3b-0410-9dea-997c60f758d6
2002-09-21 07:05:31 +00:00
justin1014
d493729c2f
made "unpacking dialog" dialog only come up when the main installer window hasnt' been created yet.
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1100 212acab6-be3b-0410-9dea-997c60f758d6
2002-09-21 02:12:30 +00:00
kichik
6fc93c1fac
bzip2 installers should now start a lot faster
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1096 212acab6-be3b-0410-9dea-997c60f758d6
2002-09-20 23:22:11 +00:00
justin1014
ca67762af0
removed unpacking installer msg since it shouldnt be needed if all is working right
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1091 212acab6-be3b-0410-9dea-997c60f758d6
2002-09-20 21:36:45 +00:00
justin1014
88acdf2345
updated with a lot of .data size optimizations.. used eccles' optimization for certain registry settings too (thanks dave).. code size may have gone slightly up,but it let me take a lot of data size off (had to change some of the default error msgs too)
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1039 212acab6-be3b-0410-9dea-997c60f758d6
2002-09-18 23:19:13 +00:00