Commit graph

125 commits

Author SHA1 Message Date
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
pabs3
eff14a4702 Install the pluginapi stuff in a subdirectory.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5922 212acab6-be3b-0410-9dea-997c60f758d6
2009-02-04 14:08:31 +00:00
kichik
79da5e1cb5 renamed plugin.* to pluginapi.*
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5856 212acab6-be3b-0410-9dea-997c60f758d6
2008-12-20 08:49:26 +00:00
kichik
3db2839a3c no more /UNLOAD with new plug-in api
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5844 212acab6-be3b-0410-9dea-997c60f758d6
2008-12-12 19:31:52 +00:00
kichik
4ba8da04fd switch to plugin.h
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5832 212acab6-be3b-0410-9dea-997c60f758d6
2008-12-12 17:18:43 +00:00
kichik
6720803d4a disable the X button for InstallOptions pages as well when CancelEnabled is used
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5139 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-30 17:18:45 +00:00
kichik
a2b1a9e178 applied patch #1683189 - [InstallOptions] new control type: "line"
added VLine and HLine


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5039 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-09 10:52:45 +00:00
kichik
3ebe1d6d61 applied patch #1683186 - [InstallOptions] support for linebreaks in link control
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5035 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-03 10:57:17 +00:00
pabs3
e873b82b53 Kill some more compiler warnings under Linux and mingw32
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5031 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-02 10:29:35 +00:00
kichik
08de3671da size optimization
it's official. even msdn now says SHGetMalloc returns the same allocator CoTaskMemFree uses and a little debugging backs this even on Windows 95


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5004 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-20 21:33:28 +00:00
pabs3
747ad310e5 Kill some compiler warnings under Linux and mingw32
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4994 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-11 15:58:46 +00:00
kichik
9478452590 fixed bug #1661677 - InstallOptions MessageBox
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4939 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-17 15:24:44 +00:00
kichik
874036d83d always terminate lpFilteredData with NULL, even if no numbers are found in lpData
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4929 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-17 09:12:15 +00:00
kichik
0594faf227 czi's patch for bug #1651312
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4923 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-06 20:58:44 +00:00
kichik
0221765d39 fixed bug #1652075 - ONLY_NUMBERS Flag (Install Options Plugin) bug
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4922 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-06 20:54:05 +00:00
kichik
618bfabd4a fixed bug #1651312 - InstallOptions browse button not working
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4921 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-03 18:30:55 +00:00
kichik
31154c4424 applied patch #1634704 - FOCUS flag for InstallOptions Plugin
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4864 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-23 17:33:31 +00:00
kichik
88572123e5 fixed bug #1606716 - InstallOptions might send irrelevant NOTIFY for radiobuttons
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4854 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-19 19:26:04 +00:00
kichik
9dd05f0129 fixed nResult warning
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4642 212acab6-be3b-0410-9dea-997c60f758d6
2006-04-05 18:54:17 +00:00
kichik
d144639111 write HWND and HWND2 entries to the INI with the control's HWND
no more weird calculations when there's a browse button


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4315 212acab6-be3b-0410-9dea-997c60f758d6
2005-10-11 16:27:04 +00:00
kichik
6a76589a72 fixed bug #1283528 - WS_EX_LEFTSCROLLBAR missing in RTL mode
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4274 212acab6-be3b-0410-9dea-997c60f758d6
2005-09-17 09:55:17 +00:00
kichik
68ff07805b fixed bug #1287731 - FileRequest alters working directory
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4260 212acab6-be3b-0410-9dea-997c60f758d6
2005-09-13 19:19:05 +00:00
kichik
d8c3489bd4 wParam should be of type WPARAM, not LPARAM
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4184 212acab6-be3b-0410-9dea-997c60f758d6
2005-07-22 18:47:44 +00:00
kichik
ccf2bb96a5 applied patch #1164307 - Fixes to allow building Contrib/ on debian (minus Makefiles)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3923 212acab6-be3b-0410-9dea-997c60f758d6
2005-03-17 21:26:59 +00:00
kichik
31542c6ea4 added TRANSPARENT flag for BITMAP fields
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3881 212acab6-be3b-0410-9dea-997c60f758d6
2005-01-21 19:12:47 +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
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
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
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
kichik
d1c5ef3af7 patches by PerditionC for compatibly with PSDK-less VC6
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3295 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-21 21:00:37 +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
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
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
kichik
f915329242 Call the same DllMain for debug and release builds
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3133 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-12 20:24:53 +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
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
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
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