Commit graph

210 commits

Author SHA1 Message Date
ramon18
7cf2ae3160 #1042367 - Banner fixed for bug 1022399 now hangs, code simplified on banner destroy
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3697 212acab6-be3b-0410-9dea-997c60f758d6
2004-10-10 00:53:04 +00:00
kichik
80f062d8ce - fixed bug #1022399 - Only initial banner is in foreground
- added a few more checks


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3690 212acab6-be3b-0410-9dea-997c60f758d6
2004-10-01 13:14:13 +00:00
kichik
eb0e1fa14d close all open file handles when one of them fail to open
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3649 212acab6-be3b-0410-9dea-997c60f758d6
2004-09-07 19:50:13 +00:00
kichik
4cb6161b0f added /NOIEPROXY (based on memph's code)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3643 212acab6-be3b-0410-9dea-997c60f758d6
2004-09-02 21:07:12 +00:00
joostverburg
4e4b0e8420 new system for DLL/TLB library setup
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3601 212acab6-be3b-0410-9dea-997c60f758d6
2004-08-06 22:04:13 +00:00
kichik
f43be4183a - fixes by brainsucker:
* Bug with proc call parts redefinition, # for example
* Bug with memory protection during callback processing (XP SP2)
- updated documentation:
* all examples now work, thanks to brainsucker's fixes
* visual improvements
* pointer information


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3590 212acab6-be3b-0410-9dea-997c60f758d6
2004-07-23 17:23:34 +00:00
kichik
d2ba6bd725 fixed problems with quotes and spaces
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3566 212acab6-be3b-0410-9dea-997c60f758d6
2004-06-18 17:59:36 +00:00
kichik
4e6cf01f9c added getWindow
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3564 212acab6-be3b-0410-9dea-997c60f758d6
2004-06-17 17:54:48 +00:00
kichik
879a8245bc (brainsucker) bug-fix-release, 4.06.2004
1. System::Copy /SIZE fixed (Kichik).
2. System::Copy with destination auto-allocation now pushes destination
address on stack.
3. Callbacks fixed (Kichik's kick is awesome).


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3555 212acab6-be3b-0410-9dea-997c60f758d6
2004-06-04 15:32:05 +00:00
kichik
499fa0e764 fixed a bug which prevented enabling the next button from the leave function of InstallOptions pages
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3544 212acab6-be3b-0410-9dea-997c60f758d6
2004-05-08 16:07:22 +00:00
kichik
2b3da85bae always create a valid standard input handle
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3512 212acab6-be3b-0410-9dea-997c60f758d6
2004-03-12 10:28:49 +00:00
eccles
6f96381818 We now centre bitmaps manually, to avoid differences in behaviour between XP and everything else.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3496 212acab6-be3b-0410-9dea-997c60f758d6
2004-02-21 15:18:22 +00:00
anoncvs_ezcontents
2fed742279 Calling show after a failed initDialog caused a freeze.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3488 212acab6-be3b-0410-9dea-997c60f758d6
2004-02-10 23:29:49 +00:00
eccles
75f3aa0691 - "Restores focus to its previous state when exiting" was broken.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3446 212acab6-be3b-0410-9dea-997c60f758d6
2004-02-01 23:55:08 +00:00
kichik
1ff9789272 All windows are now created in the main thread where the main dialog is created. This should fix any weird user32.dll crashes caused by different types of messages sent to the main dialog during destruction of the NSISdl dialog. This also reduces the size of the DLL by 0.5KB :)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3444 212acab6-be3b-0410-9dea-997c60f758d6
2004-02-01 18:52:06 +00:00
eccles
38d9a9aa37 - Fixed potential crash caused by WinSock being shutdown while the connection is still open.
- Cleaned up dialog creation a little (some details, such as font, were being changed after the dialog was already visible).
- Restores focus to its previous state when exiting.
- Fixed another one of those "holding down Cancel at the wrong moment can cause the installer to suddenly exit" problems.


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3443 212acab6-be3b-0410-9dea-997c60f758d6
2004-02-01 15:50:00 +00:00
kichik
ebd0852b60 fixed mishandling of MBCS chars
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3441 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-31 19:54:45 +00:00
kichik
8dbe4f1203 fixed a bug that was present since at least 1.3, which caused IO to read heap memory beyond pszListItems and possibly to crash
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3435 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-30 20:37:43 +00:00
eccles
6429ab2452 Now ignores WM_COMMAND messages received while the dialog is in the process of being created.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3388 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-12 23:23:36 +00:00
eccles
e9919e7f89 Links and Buttons no longer receive the initial keyboard focus as they take over the Enter key.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3361 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-05 21:53:06 +00:00
eccles
9298dd089c Focus is now set when control initialisation is complete (e.g. after Link control HWNDPROC has been changed)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3353 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-04 18:14:18 +00:00
kichik
fcd2c16685 - fixed limit on LangStrings and user variables number which was lower than designed. limit is now 16383 for both.
- made log window respond to the context menu key and not just right click
- set back the default style for the next after it's re-enabled
- set focus on main controls for every page (can still hit enter for next)
- added code to prevent weird usage of WM_COMMAND which can cause weird behavior such as disabled next button on the components page
- eccles fixed a bug which caused beeping when the space key is hit on the components tree


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3351 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-04 17:05:03 +00:00
eccles
e1c4b80991 DLL version 2.4 (1/4/2004)
* Initial focus is set in "initDialog" making it possible to override it from NSIS prior to calling "show"
- When initial focus is to a Text field InstallOptions now follows standard Windows behaviour by having the text selected
- Label and other static fields no longer have State= written to the INI file when leaving the dialog
- NOTIFY flag can now be used with Link fields (State should be omitted in this case)
- Likewise, State can now be used with Button fields (behaves the same as with Link fields)
- NOTIFY flag can also now be used with ListBox and DropList fields to have NSIS notified when the selection changes
- Meaning of RIGHT flag is now reversed in right-to-left language mode
- HSCROLL and VSCROLL flags are no longer restricted to Text fields
- Various Link field fixes
- Text box colour bug fix


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3350 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-04 14:06:39 +00:00
kichik
466e93ea11 - made NSIS ignore WM_COMMAND from disabled controls
- made NSISdl set the cancel button as the default button


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3330 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-29 15:12:41 +00:00
kichik
8a85e1c0dd fixed branding text background color not updating when the system's color change
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3329 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-29 14:27:33 +00:00
kichik
2144a90eed - Escape now works when focused on a link control
- Fixed a link control bug that allowed the user to activate the link by clicking outside of the text


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3301 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-23 16:29:16 +00:00
eccles
c31682240d Only validate if pressing the Next button.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3271 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-13 17:17:03 +00:00
kichik
29b7da028d Translation buffers were too small
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3270 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-12 22:00:49 +00:00
kichik
03acdc2211 First verify fields and then, only if all are valid, call the leave function
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3262 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-08 14:06:24 +00:00
kichik
45c040b909 - fixed bug #848868 - StartMenu trims 3 lines of text
- made StartMenu treat different fonts better, it will not resize according to the selected font


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3261 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-08 12:53:32 +00:00
kichik
4eb2881b5b - Better RTL support:
* use RTL reading wherever possible (shows the dots, commas, etc. in the correct order)
  * Message boxes are now RTL too
  * Fixed RTL for links in InstallOptions
- Fixed tab order in StartMenu
- Made StartMenu use SHGetSpecialFolderLocation (soon to be in NSIS core too)


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3259 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-06 20:45:35 +00:00
eccles
6b73b0e490 - Added new control type "Button"
- Added new flag "NOTIFY"
- Added new flag "NOWORDWRAP" for multi-line text boxes
- Reduced size down to 12K


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3254 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-04 22:12:25 +00:00
ramon18
959b379381 Crash fixes, including firewall problems, many Optimizations
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3243 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-02 01:13:35 +00:00
kichik
ed8c349736 Better error handling
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3138 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-14 13:44:26 +00:00
ramon18
359868c88e Reverted "Examples\Modern UI\StartMenu.nsi" and "Plugins\StartMenu.dll" to previous version, little size optimization
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3117 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-09 23:10:04 +00:00
ramon18
48a62f51e8 Added new function LockWindow for flickering problems workaround, fixed crash on NSISdl, fixed focus button redraw
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3115 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-09 22:45:25 +00:00
eccles
764bdc8f87 A backslash typed into a Text field with MULTILINE flag was not being escaped when saved back to State.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3082 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-01 00:17:19 +00:00
eccles
a7ed10087c - Icon and bitmap controls were being passed the file name string on creation which the control would interpret as the name of a resource, and fail.
- Now passes hInstance to LoadImage call which seems to solve a bizarre sporadic possible Windows bug where the LR_LOADFROMFILE parameter seems to be ignored.


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3078 212acab6-be3b-0410-9dea-997c60f758d6
2003-10-30 23:51:44 +00:00
eccles
75adac3e89 - Initial keyboard focus set to first (tab-able) field.
- Multi-line text boxes now wrap long lines unless horizontal scroll bar is enabled.


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2979 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-28 15:24:55 +00:00
kichik
b2574f6b3b 1. Unary-Pre operators detection fixed.
2. Unary Minus operator added (now legal, worked before?).
3. GetReference operator (&). For example (a=&b; *a=3;) will set b=3.
4. Operators precedence added (C-like), much more intellectual expressions parsing.
5. Functions redefenition added, use "#name", like "func()(1); #func()(2);".


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2950 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-22 22:56:52 +00:00
kichik
f28bb70254 a bit more testing
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2945 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-21 16:22:34 +00:00
kichik
754af5bd4b Another cool plug-in by brainsucker, a calculator :)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2920 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-15 23:20:36 +00:00
kichik
a488b62950 New and improved banner:
- No more crashes
- Responds to messages (and thus redraws itself)
- Doesn't put the main window on the background
- Some new /set tricks by brainsucker


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2909 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-12 16:45:22 +00:00
joostverburg
73870f0e8e 1. Supports any bpp for transparent images
2. Windows XP at bpp < 32 possible bug fixed
3. Removed transparency by pallete color index (always use RGB value)
4. shrinked a bit (0.5 kb)


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2903 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-12 14:01:29 +00:00
kichik
de5c3d3561 release 5 by brainsucker:
1. u flag - unload dll after procedure call.
2. some changes to asm to turn on Whole Program Optimization.
3. Dll shrinked for 1 kb.


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2902 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-12 13:58:36 +00:00
kichik
896ba172d5 - Fixed uninstaller not showing anything when installer is silent
- Improved CResourceEditor - should be more tolerant now
- Removed legacy code from InstallOptions and StartMenu


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2882 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-08 13:54:01 +00:00
kichik
19556df888 Temporary workaround to FindControlIdx returning -1
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2874 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-07 14:36:03 +00:00
kichik
d0fcfb423e Adjusted to latest CVS version - added ShowWindow(hwndDlg,SW_SHOW);
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2844 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-05 19:26:20 +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
fabf2f79ea Empty lines were not printed (this time it's really fixed)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2794 212acab6-be3b-0410-9dea-997c60f758d6
2003-08-08 13:56:41 +00:00