Commit graph

213 commits

Author SHA1 Message Date
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
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
a23424a8ad b5 -> rc1
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3320 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-27 19:09:18 +00:00
kichik
0c7981ef60 - Disabled DirShow as it hasn't been working since b0 which was released more than a year ago.
- Rewrote token placement checks to prevent a crash with:
"Section uninstall
InstallDir something"
and to make it a bit more comfortable.


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3305 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-24 15:54:06 +00:00
ramon18
2589a5fc85 Code clean up, removed NSIS_SUPPORT_NAMED_USERVARS and NSIS_SUPPORT_LANG_IN_STRINGS
Added support for many new constants which get shell folders path without using the registry


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3296 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-22 00:28:30 +00:00
kichik
672e695976 - Added SS_NOPREFIX for the static control above the install log so both will show the same when an ampersand is present in the string
- Added another parameter for Name. It will be used in places where doubled ampersands are required for text to render as expected. Use it if you have an ampersand in your name. See the updated documentation about the Name command for more information about usage.


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3288 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-17 23:22:14 +00:00
kichik
0255c1414d signed/unsigned mismatch
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3285 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-16 16:32:02 +00:00
kichik
b11b408bdb no need for that variable
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3237 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-01 00:16:41 +00:00
kichik
7bfcfac3c2 build plug-in table only when needed. this also fixes warnings when using something like makensis.exe /X"OutFile bla.exe" /XSection /XSectionEnd
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3236 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-30 18:00:39 +00:00
kichik
774f3d50de !ifmacro[n]def based now works with !else
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3235 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-30 16:44:06 +00:00
kichik
5028c34424 !ifmacro[n]def based on Anders Kjersem's code
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3234 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-30 16:31:43 +00:00
kichik
164f6462b3 fixed !include not failing when it can't find the requested file
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3232 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-29 16:10:10 +00:00
kichik
b5a430dfa6 Some more optimizations
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3223 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-27 23:21:15 +00:00
kichik
f6ebb29045 - All message boxes in code now have a default for silent installers
- Some size optimizations


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3221 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-27 20:19:48 +00:00
kichik
0139636e18 clean offsets for EW_SETFILEATTRIBUTES that comes after EW_EXTRACTFILE
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3220 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-27 18:47:47 +00:00
kichik
ec5f289696 - More path validation (drive id is an english letter, no chars under 32 in a path)
- Fixed bug #839214 - message box shown in silent mode if a file can't be opened for writing. Now it will skip the file if AllowSkipFiles is on and abort if it's not.
- Added /SD parameter for MessageBox. Allows to set default for silent installers (MessageBox MB_OKCANCEL "OK? Cancel?" /SD IDOK IDOK doOK IDCANCEL doCancel)


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3208 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-25 17:07:40 +00:00
kichik
06c87de7e0 Allow wildcards in !include
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3206 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-25 07:09:53 +00:00
kichik
5e2948eda9 Added support for reading environmental variables on compile time - $%envVarName%.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3205 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-25 06:25:31 +00:00
kichik
b77f339455 Added DirVerify (works in PageEx directory) and GetInstDirError. If `DirVerify leave' is used, the next button will not be disabled if the installation directory is not valid or there is not enough space and a flag will be set instead. You can read that flag using GetInstDirError in the leave function of the directory page. A value of 0 means no error, 1 means invalid installation directory and 2 means not enough space. This allows you to handle those errors on your own.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3196 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-24 17:05:10 +00:00
kichik
0ef7fcd98b Uninstaller data offset is saved as EW_WRITEUNINSTALLER's parameters. A step forward to multiple uninstallers and smaller exehead.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3192 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-24 13:11:35 +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
79a298aee3 - Fixed bug #844989 - multiple uninstaller subsections problems
- Removed "(CVS)" from version number


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3168 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-19 13:11:07 +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
kichik
71072d7532 Fixed bug #830913 - if /nonfatal is used a warning should be displayed, not an error
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3069 212acab6-be3b-0410-9dea-997c60f758d6
2003-10-27 15:46:33 +00:00
kichik
abbab23ae4 Ignore all commands but those who start with an exclamation mark in nested ignored if blocks too
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2946 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-22 10:09:48 +00:00
kichik
de0104cc39 - Improved file mapping so you can now esaily compile installers up to 2GB with a minimum requirment of memory (changable by FileBufSize)
- Fixed DirText
- Fixed new browse dialog style problems (thanks LIGHTNING UK!)


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2919 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-15 22:05:06 +00:00
kichik
103b31643e - Fixed SpaceText none
- Fixed a crash that occured if LicenseData was not used and Page license was


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2910 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-12 21:40:33 +00:00
kichik
41808c26be More memory clean-ups
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2901 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-12 11:16:33 +00:00
kichik
2fba235c29 fixed SetOverwrite and added ifdiff option
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2876 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-07 16:46:50 +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
acd850dd85 !ifdef, again...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2861 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-06 19:48:00 +00:00
kichik
04234ccac2 - Fixed and improved SetFont
- Fixed WindowIcon


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2852 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-06 09:59:02 +00:00
kichik
f1a8c1950a Get progress bar to the end even with subsections
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2851 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-05 22:22:56 +00:00
kichik
9cd28a4c3d No more static variables in CEXEBuild member functions
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2849 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-05 21:16:33 +00:00
kichik
12e5291213 Fixed LicesneData and language strings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2840 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-05 14:55:50 +00:00
kichik
87602b35ec Only check for open if[n]def if the compilation was successful
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2839 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-05 14:14:29 +00:00
kichik
847e04dfb5 Fixed SetDetailsPrint
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2836 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-05 12:45:12 +00:00
kichik
9e5ccb9a32 - SetCompressor: added /FINAL switch
- SetOverwrite: added lastusd option
- Greek MUI translation v1.66


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2835 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-05 11:46:48 +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
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
icemank
4661dd7069 Moved __DATE__ and __TIME__ predefines into CEXEBuild::process_script
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2736 212acab6-be3b-0410-9dea-997c60f758d6
2003-07-18 02:43:03 +00:00
kichik
2adb778918 Added EnableWindow
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2727 212acab6-be3b-0410-9dea-997c60f758d6
2003-07-16 22:36:18 +00:00
ramon18
1883dc3a19 Fix problem on Script.cpp that allowed VAR declarations inside Functions and Sections, no more differences between installer uservars and unistaller user vars (even if name start with un. ), changed example too
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2720 212acab6-be3b-0410-9dea-997c60f758d6
2003-07-15 23:40:34 +00:00
kichik
e6dd2ada8a tabs to spaces
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2713 212acab6-be3b-0410-9dea-997c60f758d6
2003-07-12 15:19:49 +00:00
icemank
0b6ed99e50 Modified set_timestamp_define to use FileTimeToLocalFileTime instead of SystemTimeToTzSpecificLocalTime, since the latter is unsupported in Win 9x.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2669 212acab6-be3b-0410-9dea-997c60f758d6
2003-06-23 15:12:49 +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
ramon18
a558797625 Language strings inside any other strings, $$ defines fix, both currently disabled by defines, support for /LANG in command VIAddVersionKey
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2652 212acab6-be3b-0410-9dea-997c60f758d6
2003-06-16 19:58:29 +00:00
icemank
bbc605eeac Added dotted notation for macro ${__LINE__} predefine
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2643 212acab6-be3b-0410-9dea-997c60f758d6
2003-06-13 15:59:30 +00:00
kichik
dff6515865 Compiles with NSIS_SUPPORT_VERSION_INFO
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2641 212acab6-be3b-0410-9dea-997c60f758d6
2003-06-13 14:04:33 +00:00
kichik
9633f0363d second free goes boom
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2640 212acab6-be3b-0410-9dea-997c60f758d6
2003-06-13 12:52:42 +00:00