Commit graph

453 commits

Author SHA1 Message Date
anders_k
e63fa6c53b Win64 fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6413 212acab6-be3b-0410-9dea-997c60f758d6
2013-09-06 23:48:59 +00:00
anders_k
ed8d91a1c1 ChangeUI must force RichEdit20A/W class based on target
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6411 212acab6-be3b-0410-9dea-997c60f758d6
2013-08-18 16:34:10 +00:00
anders_k
51e2b07f05 Fixed bug #1079, broken !define Unicode null terminator
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6409 212acab6-be3b-0410-9dea-997c60f758d6
2013-08-15 21:22:17 +00:00
anders_k
6c283bde91 !include defaults to UTF-8 after Unicode True
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6407 212acab6-be3b-0410-9dea-997c60f758d6
2013-08-08 00:26:59 +00:00
anders_k
55738e1385 Optimize FileReadByte/FileReadWord
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6400 212acab6-be3b-0410-9dea-997c60f758d6
2013-07-28 14:46:24 +00:00
anders_k
d387a32658 FileRead in Unicode installers can handle DBCS, conversion output is limited to UCS-2
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6399 212acab6-be3b-0410-9dea-997c60f758d6
2013-07-27 23:09:54 +00:00
anders_k
009318ef94 Fix "!insertmacro foo /* this comment kills the macro body" parser bug
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6384 212acab6-be3b-0410-9dea-997c60f758d6
2013-07-10 21:03:32 +00:00
anders_k
cc796c202d Fix !searchparse
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6367 212acab6-be3b-0410-9dea-997c60f758d6
2013-05-21 19:18:26 +00:00
anders_k
bd591bf196 200? -> 2013
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6352 212acab6-be3b-0410-9dea-997c60f758d6
2013-05-17 19:31:36 +00:00
anders_k
0653f46c07 StdOut Unicode support, controlled by /OUTPUTCHARSET and/or existing BOM if redirected.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6350 212acab6-be3b-0410-9dea-997c60f758d6
2013-05-04 13:32:47 +00:00
anders_k
cf0d27706a Improved !searchparse error detection/handling
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6348 212acab6-be3b-0410-9dea-997c60f758d6
2013-04-16 21:02:50 +00:00
kichik
30d337eac1 fixed LicenseLangString always failing
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6336 212acab6-be3b-0410-9dea-997c60f758d6
2013-04-11 08:49:00 +00:00
anders_k
5fb2e9e166 Unicode support for !define /file and !searchparse /file
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6329 212acab6-be3b-0410-9dea-997c60f758d6
2013-04-10 02:51:33 +00:00
anders_k
9b35c900cb Added !appendfile /CHARSET parameter, output is written using the new NOStream class
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6326 212acab6-be3b-0410-9dea-997c60f758d6
2013-04-03 22:46:17 +00:00
anders_k
fe8e4a36bf Added ${__COUNTER__} predefine
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6325 212acab6-be3b-0410-9dea-997c60f758d6
2013-03-29 02:39:07 +00:00
anders_k
9fa3398dd9 Support special ${U+1}...${U+FFFFFFFF} Unicode character defines
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6324 212acab6-be3b-0410-9dea-997c60f758d6
2013-03-29 02:04:21 +00:00
anders_k
d3d637fab9 Fixed minor MakeNSIS leaks (Bug #3474662)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6309 212acab6-be3b-0410-9dea-997c60f758d6
2013-03-19 02:11:37 +00:00
anders_k
0e851e4b79 Reduced !include/!insertmacro recursion stack usage (Bug #3067954)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6306 212acab6-be3b-0410-9dea-997c60f758d6
2013-03-17 21:13:07 +00:00
anders_k
43b30c9337 Refactor m_macros finder/getter
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6304 212acab6-be3b-0410-9dea-997c60f758d6
2013-03-16 20:09:44 +00:00
anders_k
9b287fc648 Added /plugin parameter to ReserveFile for our multi-arc. plugin subdirectories.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6290 212acab6-be3b-0410-9dea-997c60f758d6
2013-03-07 23:38:25 +00:00
anders_k
dcddf977b2 Use a custom file reader with UTF8 support for nsi/nsh/nlf files and store UTF16LE or MBCS (stringblock) strings in ExeHeadStringList
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6289 212acab6-be3b-0410-9dea-997c60f758d6
2013-03-07 21:25:35 +00:00
anders_k
7cc150c464 MakeNSIS can now generate Unicode or Ansi installers based on a script attribute. SCons generates both Ansi and Unicode stubs and plugins.
The official plugins are now stored in architecture specific subdirectories under NSIS\Plugins. !AddPluginDir also gained a new (optional) architecture flag because MakeNSIS now stores separate plugin information for each target architecture. Storing plugins in the root of the Plugins directory is no longer supported.

MinGW does not implement the unicode CRT startup functions so the entry point functions and linker parameters had to be changed. The unicode tools use the ansi entry point and a small helper function that calls into the real code: _tmain has full argc+argv emulation while wWinMain does not pass the command line parameters. The stubs do not use any CRT functions and have no CRT or unicode helper code, they call our entry point directly.



git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6269 212acab6-be3b-0410-9dea-997c60f758d6
2012-10-13 01:47:50 +00:00
anders_k
4b62ecbb31 Added ManifestDPIAware attribute
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6266 212acab6-be3b-0410-9dea-997c60f758d6
2012-09-20 18:42:21 +00:00
anders_k
da2fe44184 Add ManifestSupportedOS attribute
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6265 212acab6-be3b-0410-9dea-997c60f758d6
2012-09-20 10:18:40 +00:00
anders_k
2d99d7ad3e Removed unused variables and fixed GCC warnings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6259 212acab6-be3b-0410-9dea-997c60f758d6
2012-09-08 02:50:09 +00:00
anders_k
7cf2ef1a08 Unicode on posix fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6217 212acab6-be3b-0410-9dea-997c60f758d6
2012-03-01 21:06:14 +00:00
anders_k
a97f08a281 Added some rarely used SW_ flags to ExecShell whitelist
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6207 212acab6-be3b-0410-9dea-997c60f758d6
2011-12-13 02:04:16 +00:00
anders_k
e57b4c5a67 UTF-8 support for SetFont and .nlf font name in ansi build
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6206 212acab6-be3b-0410-9dea-997c60f758d6
2011-12-07 08:18:41 +00:00
wizou
985f4b5e00 fix Unicode compilation
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6204 212acab6-be3b-0410-9dea-997c60f758d6
2011-12-06 21:28:59 +00:00
wizou
d5caa9b185 fix Unicode compilation
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6202 212acab6-be3b-0410-9dea-997c60f758d6
2011-12-06 21:24:56 +00:00
anders_k
dca62fbbc7 Added <<, >> and >>> !define /math operations
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6199 212acab6-be3b-0410-9dea-997c60f758d6
2011-12-06 21:04:47 +00:00
anders_k
67d0b165b1 Added !if S==, S!=, = and <> compare ops and hex/int/float parsing support
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6198 212acab6-be3b-0410-9dea-997c60f758d6
2011-12-06 19:14:45 +00:00
anders_k
ef8a83bd41 Basic UTF-8 support in ansi build so it can read UTF-8 .nlf files and LangStrings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6196 212acab6-be3b-0410-9dea-997c60f758d6
2011-12-05 23:44:26 +00:00
anders_k
359ad0a055 Fix a couple of simple unicode merge and substart related bugs
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6195 212acab6-be3b-0410-9dea-997c60f758d6
2011-12-05 22:52:54 +00:00
anders_k
79dbea3321 Added !getdllversion [Bug#2809308,RFE#1873767]
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6186 212acab6-be3b-0410-9dea-997c60f758d6
2011-11-21 20:13:30 +00:00
anders_k
9a3f4e0cb1 !verbose varargs support (Ex: !verbose push 3)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6183 212acab6-be3b-0410-9dea-997c60f758d6
2011-11-20 18:51:35 +00:00
anders_k
3d9c850bb5 Added !macroundef
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6177 212acab6-be3b-0410-9dea-997c60f758d6
2011-11-17 18:54:49 +00:00
anders_k
650a51baac Added UnsafeStrCpy
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6172 212acab6-be3b-0410-9dea-997c60f758d6
2011-11-15 17:59:25 +00:00
anders_k
8cde6958a8 Added ${__MACRO__}
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6171 212acab6-be3b-0410-9dea-997c60f758d6
2011-11-13 17:31:14 +00:00
anders_k
20dcb1923a Added !if /FileExists
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6170 212acab6-be3b-0410-9dea-997c60f758d6
2011-11-13 15:34:43 +00:00
anders_k
cf4e5cf132 Fix a lot of MinGW/GCC warnings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6168 212acab6-be3b-0410-9dea-997c60f758d6
2011-11-09 18:12:57 +00:00
anders_k
3cd6ebbf39 Added VIFileVersion instruction and fixed version info resource default language
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6160 212acab6-be3b-0410-9dea-997c60f758d6
2011-07-29 22:11:00 +00:00
anders_k
96af71d0d1 Allow multiple !finalize commands
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6153 212acab6-be3b-0410-9dea-997c60f758d6
2011-06-09 20:05:18 +00:00
wizou
73501896d4 Updated documentation and file functions for Unicode support
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6119 212acab6-be3b-0410-9dea-997c60f758d6
2010-07-09 15:12:21 +00:00
wizou
4d19aaa9ab Adding new ${__FILEDIR__} preprocessor define containing directory of current script
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6108 212acab6-be3b-0410-9dea-997c60f758d6
2010-06-17 10:11:29 +00:00
wizou
ab8f90f99e #1787648: ${__SECTION__} is correctly defined in hidden section
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6107 212acab6-be3b-0410-9dea-997c60f758d6
2010-06-16 16:01:40 +00:00
wizou
51a7c3d647 #1977885: adding !finalize preprocessor commands for post-build execution
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6103 212acab6-be3b-0410-9dea-997c60f758d6
2010-06-16 14:10:41 +00:00
wizou
487e37ffb7 Changed keyword UnicodeInstaller to a more versatile TargetMinimalOS <version> keyword
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6102 212acab6-be3b-0410-9dea-997c60f758d6
2010-06-14 15:24:50 +00:00
wizou
57f7ff8a1c Unicode port: Unicode version of NSIS can now generate both ANSI & Unicode installers (using new instruction UnicodeInstaller on/off).
Stubs & Plugins differentiation is done automatically using a 'W' suffix.
SConscripts need to be reviewed to generate both variants of Plugins & pluginapi.lib under Unicode compilation.

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6100 212acab6-be3b-0410-9dea-997c60f758d6
2010-06-14 10:07:22 +00:00
anders_k
fbc7cb8fd0 Fixed and documented !if & operator
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6099 212acab6-be3b-0410-9dea-997c60f758d6
2010-06-11 16:33:10 +00:00