Commit graph

657 commits

Author SHA1 Message Date
kichik
1ecd52511c fixed bug #1114876 - "Space Available" shows bad value "258.-2GB"
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3888 212acab6-be3b-0410-9dea-997c60f758d6
2005-02-03 18:24:48 +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
6008ab4265 removed unneeded test
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3872 212acab6-be3b-0410-9dea-997c60f758d6
2005-01-14 15:46:28 +00:00
kichik
057a91aa70 made SectionGetText work in .onInit too
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3871 212acab6-be3b-0410-9dea-997c60f758d6
2005-01-14 15:24:51 +00:00
kichik
f558c99c2c use new section name space
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3868 212acab6-be3b-0410-9dea-997c60f758d6
2005-01-14 15:13:47 +00:00
kichik
3bef7a5d67 added space for section name to make it possible to parse it immediately when setting it and not only when the components page is present
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3866 212acab6-be3b-0410-9dea-997c60f758d6
2005-01-14 15:11:20 +00:00
kichik
b4e31e321e update the inner page if the leave function aborted, something might have changed
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3861 212acab6-be3b-0410-9dea-997c60f758d6
2005-01-11 16:54:59 +00:00
kichik
840ab03222 use new component functions to enable toggling of partially selected sections and fix bug #1045722
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3857 212acab6-be3b-0410-9dea-997c60f758d6
2005-01-11 16:38:48 +00:00
kichik
d8225671ad use new components functions so SetCurInstType will take affect immediately and so setting a section group's flags will affect its children too
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3856 212acab6-be3b-0410-9dea-997c60f758d6
2005-01-11 16:33:12 +00:00
kichik
c73d4d43b4 - deprecated cur_insttype and insttype_changed
- added SF_TOGGLED section flag


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3855 212acab6-be3b-0410-9dea-997c60f758d6
2005-01-11 16:29:29 +00:00
kichik
6173889411 components functions that don't rely on the TreeView
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3854 212acab6-be3b-0410-9dea-997c60f758d6
2005-01-11 16:28:10 +00:00
kichik
f2cba8c2cb renamed SubSection to SectionGroup
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3852 212acab6-be3b-0410-9dea-997c60f758d6
2005-01-10 12:43:52 +00:00
kichik
dfd8dc1227 2005
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3831 212acab6-be3b-0410-9dea-997c60f758d6
2005-01-04 14:54:48 +00:00
kichik
ea1c67af6b fixed bug #1073363 - keyboard navigation in MUI_PAGE_INSTFILES
keyboard navigation doesn't work while the focus is set on a disabled control


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3778 212acab6-be3b-0410-9dea-997c60f758d6
2004-11-25 22:31:08 +00:00
kichik
76dcceb87a made the gradient background window not pretend to be the installer dialog so the "unpacking" window will show even if it is used
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3775 212acab6-be3b-0410-9dea-997c60f758d6
2004-11-20 15:23:37 +00:00
kichik
2b0c2f2787 Only use the GetModuleHandle trick for plug-ins, otherwise just load and unload. If RegDLL uses /NOUNLOAD, unloading will be skipped, but GetModuleHandle won't be used.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3763 212acab6-be3b-0410-9dea-997c60f758d6
2004-11-11 21:28:25 +00:00
kichik
424322a142 Always increase the load count of registered dlls if /NOUNLOAD is not specified. This should fix some problems with registering many COM dlls in a row.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3762 212acab6-be3b-0410-9dea-997c60f758d6
2004-11-11 20:34:50 +00:00
kichik
89d3581649 Added another parameter to plug-in functions. This parameter is a structure with pointers to exec_flags and ExecuteCodeSegment. This is backward compatible with older plug-ins because plug-in functions use the __cdecl calling convention which means NSIS clears the stack.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3751 212acab6-be3b-0410-9dea-997c60f758d6
2004-10-23 17:43:08 +00:00
kichik
b7f9b6525b added a comment
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3732 212acab6-be3b-0410-9dea-997c60f758d6
2004-10-14 21:34:17 +00:00
kichik
0677224b1f size optimizations
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3731 212acab6-be3b-0410-9dea-997c60f758d6
2004-10-14 21:33:33 +00:00
kichik
335fd47066 made the Reboot command first quit and then reboot
- fixed bug #989690
 - the installer now denies reboots while running
 - the Reboot instruction no longer returns or sets the error flag
 - added .onRebootFailed which is called when Reboot fails
 - installer should now always clean-up when rebooting


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3729 212acab6-be3b-0410-9dea-997c60f758d6
2004-10-14 13:56:02 +00:00
kichik
45390f68d7 some more cross compiler prefixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3724 212acab6-be3b-0410-9dea-997c60f758d6
2004-10-12 22:40:58 +00:00
oripel
df2695bba1 Added support for different prefixes for gcc on non-Windows platforms
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3715 212acab6-be3b-0410-9dea-997c60f758d6
2004-10-11 21:26:08 +00:00
kichik
ba8a64a806 refactoring:
- added CEXEBuild::update_exehead() and made everyone use it
 - renamed some variables (of the *exeheader* variety)
bug fix:
 - uninstaller CRC-check failed if !packhdr created a non-512-bytes-aligned exehead


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3695 212acab6-be3b-0410-9dea-997c60f758d6
2004-10-02 18:04:41 +00:00
kichik
32dfb7e181 both _=? and /D= now require a space before them so they can safely remove the space from $CMDLINE
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3692 212acab6-be3b-0410-9dea-997c60f758d6
2004-10-01 21:15:24 +00:00
kichik
0ba42540df updated some comments
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3682 212acab6-be3b-0410-9dea-997c60f758d6
2004-09-30 18:50:04 +00:00
kichik
8759dcc315 fixed gcc 3.4 compile errors
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3673 212acab6-be3b-0410-9dea-997c60f758d6
2004-09-25 18:05:16 +00:00
kichik
010dd61226 return 0 if the uninstaller was successfully copied and executed, not -1
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3671 212acab6-be3b-0410-9dea-997c60f758d6
2004-09-25 14:56:16 +00:00
kichik
66ad756138 added NSIS_CONFIG_COMPONENTPAGE_ALTERNATIVE
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3669 212acab6-be3b-0410-9dea-997c60f758d6
2004-09-25 11:22:46 +00:00
kichik
e82748702c - added GetErrorLevel and SetErrorLevl
- fixed some inconsistencies in the error levels the installer/uninstaller set


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3668 212acab6-be3b-0410-9dea-997c60f758d6
2004-09-25 10:49:08 +00:00
kichik
92d5893afa added an optional flag called USE_PRECOMPILED_EXEHEADS
set it to 1 to force the makefile to use the precompiled exehead .h files that come with NSIS releases


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3662 212acab6-be3b-0410-9dea-997c60f758d6
2004-09-24 13:27:56 +00:00
kichik
efce592be4 use RegCreateKeyEx instead of RegCreateKey to hopefully solve the 64-bit Windows 2003 Server problem with WriteRegStr
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3661 212acab6-be3b-0410-9dea-997c60f758d6
2004-09-24 12:58:43 +00:00
kichik
d7ca86c446 don't try to delete a directory after reboot if it's not even valid
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3659 212acab6-be3b-0410-9dea-997c60f758d6
2004-09-24 11:26:35 +00:00
kichik
91af95e1ef don't forward WM_COMMAND if it was handled
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3644 212acab6-be3b-0410-9dea-997c60f758d6
2004-09-03 12:52:29 +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
e1deb281f7 set NSIS Error title for invalid temporary directory error message
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3633 212acab6-be3b-0410-9dea-997c60f758d6
2004-08-20 14:14:51 +00:00
eccles
cd663b221e request #990249 - Speedup BGGradient painting (was actually a bug)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3632 212acab6-be3b-0410-9dea-997c60f758d6
2004-08-19 22:05:19 +00:00
kichik
d855dafe58 fixed build warnings (including bug report #1005303 )
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3628 212acab6-be3b-0410-9dea-997c60f758d6
2004-08-14 17:35:05 +00:00
kichik
c3ec520071 patch #1005845 - Warning fix for bin2h.c
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3621 212acab6-be3b-0410-9dea-997c60f758d6
2004-08-13 19:28:25 +00:00
kichik
f549788c32 patch #1005305 - Source/exehead/Makefile for cross compiling on POSIX systems
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3619 212acab6-be3b-0410-9dea-997c60f758d6
2004-08-13 19:07:09 +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
joostverburg
a1f64d2d4c compiles with NSIS_SUPPORT_CODECALLBACKS disabled
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3600 212acab6-be3b-0410-9dea-997c60f758d6
2004-08-06 21:47:14 +00:00
kichik
010dc75a71 converted RMDir back from SHFileOperation to the good old manual method
- RMDir can now be used with both /r and /REBOOTOK
- RMDir /r no longer leaves lots of files behind if one file removal failed
- The plug-ins directory is now always deleted, if not immediately, then after reboot
- RMDir /r prints a detailed log of its actions


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3597 212acab6-be3b-0410-9dea-997c60f758d6
2004-08-06 17:03:07 +00:00
kichik
7270abe8d3 close installer on WM_QUERYENDSESSION instead of trying to clean up on WM_ENDSESSION which doesn't work if there's an active plug-in (for example, when the finish page is showing)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3596 212acab6-be3b-0410-9dea-997c60f758d6
2004-08-06 16:47:19 +00:00
kichik
3181bf4b4d size optimization - lzma exehead is now 33.5kb
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3593 212acab6-be3b-0410-9dea-997c60f758d6
2004-08-06 11:05:48 +00:00
kichik
0735b7400e fixed internet shortcuts creation with CreateShortcut (thanks rex123)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3588 212acab6-be3b-0410-9dea-997c60f758d6
2004-07-15 17:37:11 +00:00
kichik
bf4d3c6c94 DeleteRegKey fix
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3587 212acab6-be3b-0410-9dea-997c60f758d6
2004-07-08 21:06:18 +00:00
joostverburg
40fc357e89 more things NSIS_CONFIG_PLUGIN_SUPPORT relies on
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3583 212acab6-be3b-0410-9dea-997c60f758d6
2004-07-06 23:43:14 +00:00
kichik
8233ce2db2 made the agree radio button come before the disagree radio button in the license page's tab order so pressing the up key will move the selection up and not down
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3581 212acab6-be3b-0410-9dea-997c60f758d6
2004-07-01 20:22:38 +00:00
kichik
5d8517c328 - extended maximum binary data for WriteRegBin to 3 * NSIS_MAX_STRLEN
- fixed FileRead setting the error flag when a null character is the first character it reads
- made File /nonfatal always produce a warning if the file can't be found
- some size optimizations


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3577 212acab6-be3b-0410-9dea-997c60f758d6
2004-06-25 19:53:05 +00:00