Commit graph

1982 commits

Author SHA1 Message Date
anders_k
8d7dd2cf9f !system and !execute can store the exit code in a define
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6461 212acab6-be3b-0410-9dea-997c60f758d6
2014-04-13 17:49:39 +00:00
anders_k
3337a6d606 !execute supports comparing the exit code with the same syntax as !system
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6460 212acab6-be3b-0410-9dea-997c60f758d6
2014-04-13 14:45:02 +00:00
anders_k
45b87a7dc5 Store db_full_size[_u] statistics as UINT64
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6459 212acab6-be3b-0410-9dea-997c60f758d6
2014-04-05 16:50:11 +00:00
anders_k
4ac358dc35 Store datablock optimizer statistics as UINT64 in case the same large file is added many times
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6457 212acab6-be3b-0410-9dea-997c60f758d6
2014-03-31 17:34:58 +00:00
anders_k
ed4f2ab384 !system decodes child output as OEMCP if GetConsoleOutputCP() == GetOEMCP(), this should help bug #1092 (or fix it completely?)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6456 212acab6-be3b-0410-9dea-997c60f758d6
2014-03-30 22:43:49 +00:00
anders_k
35c1a5bae7 Adding the same file twice can push cur_datablock over the 2GB limit because datablock_optimize() happens too late. Try to find a dupe early.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6455 212acab6-be3b-0410-9dea-997c60f758d6
2014-03-30 03:25:52 +00:00
anders_k
da7d67e69d CreateShortCut > CreateShortcut
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6453 212acab6-be3b-0410-9dea-997c60f758d6
2014-03-28 16:21:39 +00:00
anders_k
1e17d02ff7 Added CreateShortcut /NoWorkingDir optional parameter
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6452 212acab6-be3b-0410-9dea-997c60f758d6
2014-03-28 16:17:07 +00:00
anders_k
a864703ce9 Fix bug #1088 and try even harder by using substring if possible
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6451 212acab6-be3b-0410-9dea-997c60f758d6
2014-03-10 00:06:42 +00:00
anders_k
656ade8732 Don't store wide and narrow versions of the same error string
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6450 212acab6-be3b-0410-9dea-997c60f758d6
2014-03-09 23:23:19 +00:00
anders_k
dce2f551ac Print error when ExeHeadStringList::find is unable to convert to narrow string
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6449 212acab6-be3b-0410-9dea-997c60f758d6
2014-03-09 23:04:51 +00:00
anders_k
ce0d6a7a94 Don't list /amd64-unicode in !addplugindir help (makensis win32)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6446 212acab6-be3b-0410-9dea-997c60f758d6
2014-03-04 19:26:56 +00:00
anders_k
a7076ff238 Basic AMD64 System::Call support
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6444 212acab6-be3b-0410-9dea-997c60f758d6
2014-03-03 18:10:53 +00:00
anders_k
a7261be70c Fixed some warnings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6443 212acab6-be3b-0410-9dea-997c60f758d6
2014-02-11 01:34:11 +00:00
anders_k
07183c43a9 Prevent MSVC 14.00.40310 from generating a recursive call to memset
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6442 212acab6-be3b-0410-9dea-997c60f758d6
2014-02-09 23:12:52 +00:00
anders_k
2c0e7ad0bd Calculate ctlcolors64 offset correctly
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6441 212acab6-be3b-0410-9dea-997c60f758d6
2014-02-09 19:32:41 +00:00
anders_k
d799ee53d7 Basic Win64 support (MSVC)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6439 212acab6-be3b-0410-9dea-997c60f758d6
2014-02-08 00:13:52 +00:00
kichik
66620388fe fix gcc warning
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6435 212acab6-be3b-0410-9dea-997c60f758d6
2014-02-02 00:37:50 +00:00
kichik
3479c12645 and fix vc build too now... meh
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6433 212acab6-be3b-0410-9dea-997c60f758d6
2014-01-27 03:44:52 +00:00
kichik
e798b125ca fixed build with mingw on ubuntu 64-bit
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6432 212acab6-be3b-0410-9dea-997c60f758d6
2014-01-27 03:34:16 +00:00
anders_k
03405bcd96 Fixed winchar tests
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6430 212acab6-be3b-0410-9dea-997c60f758d6
2014-01-22 09:54:21 +00:00
kichik
069a18860a arg name is s not str
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6429 212acab6-be3b-0410-9dea-997c60f758d6
2014-01-22 03:35:26 +00:00
anders_k
52a8b320ef POSIX fixes for native and crossplatform utils
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6427 212acab6-be3b-0410-9dea-997c60f758d6
2014-01-21 14:13:00 +00:00
kichik
4997292d4b build fixes for vc
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6421 212acab6-be3b-0410-9dea-997c60f758d6
2013-12-25 04:50:54 +00:00
anders_k
f9fae88303 PE NSIS_VARS_SECTION size should not depend on sizeof(TCHAR)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6419 212acab6-be3b-0410-9dea-997c60f758d6
2013-12-08 23:48:13 +00:00
anders_k
527cf2d7a4 Fix bug#1086, don't parse non-branch instructions inside a !if 0 block
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6418 212acab6-be3b-0410-9dea-997c60f758d6
2013-12-08 16:24:06 +00:00
anders_k
c16bc083b5 Fixed incorrect page count in compiler statistics
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6417 212acab6-be3b-0410-9dea-997c60f758d6
2013-12-08 15:41:47 +00:00
anders_k
be6c7e6a1d Major POSIX overhaul
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6416 212acab6-be3b-0410-9dea-997c60f758d6
2013-12-08 14:34:38 +00:00
anders_k
1e55e30ff4 Optimized return is valid even after the CharEncConv object is destroyed
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6415 212acab6-be3b-0410-9dea-997c60f758d6
2013-10-09 00:16:28 +00:00
anders_k
bb9b88b70f Fix DupWCFromBytes/CharEncConv optimized return bug when converting UTF16LE license file to wchar_t(UTF16LE)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6414 212acab6-be3b-0410-9dea-997c60f758d6
2013-10-08 18:59:28 +00:00
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
5744372364 Fix bug #1080, Unicode stubs must use RichEdit20W, otherwise EM_GETTEXTRANGE gives us ANSI strings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6410 212acab6-be3b-0410-9dea-997c60f758d6
2013-08-15 23:14:12 +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
928f0f78e5 FindFirst short-name fallback trick not required in Unicode stubs
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6406 212acab6-be3b-0410-9dea-997c60f758d6
2013-08-07 23:26:00 +00:00
anders_k
942ea1d465 Win64 fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6405 212acab6-be3b-0410-9dea-997c60f758d6
2013-08-07 23:04:23 +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
7ce021a376 Ignore c++ exception specifications, they are still useful as "documentation"
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6398 212acab6-be3b-0410-9dea-997c60f758d6
2013-07-27 18:29:36 +00:00
anders_k
ebe96fe79c Don't limit Lnk path A2W conversion to 1024 WCHARs
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6397 212acab6-be3b-0410-9dea-997c60f758d6
2013-07-27 17:40:38 +00:00
anders_k
6c60c09a2c VS2008 does not like the vsnwprintf(INT_MAX) hack, use _vscwprintf if it exists
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6396 212acab6-be3b-0410-9dea-997c60f758d6
2013-07-25 22:00:53 +00:00
anders_k
19b9a3e65a Use ReadFile helper function in exehead
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6395 212acab6-be3b-0410-9dea-997c60f758d6
2013-07-25 19:18:34 +00:00
anders_k
a5f0809ee9 FileReadByte should not do any kind of conversion
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6394 212acab6-be3b-0410-9dea-997c60f758d6
2013-07-25 18:27:02 +00:00
kichik
cf91be2927 fix bug #1076 - always be silent if the user passes /S on the command line, even the installer file can't be read. the installer is not always executed from the computer itself and remote deployment can stall because of this issue (with psexec -c on x64 for example).
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6385 212acab6-be3b-0410-9dea-997c60f758d6
2013-07-14 19:38:06 +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
5e1edb3d75 Added Windows 8.1 Preview GUID alias to ManifestSupportedOS
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6380 212acab6-be3b-0410-9dea-997c60f758d6
2013-07-07 23:27:11 +00:00
anders_k
e6f549adee Add !finalize %1 fix to changelog and shut up MinGW
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6376 212acab6-be3b-0410-9dea-997c60f758d6
2013-06-08 19:10:42 +00:00
anders_k
47e481a3bf Default verbosity is /V3 without logo, MakeNSISW still uses /V4
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6375 212acab6-be3b-0410-9dea-997c60f758d6
2013-06-08 18:48:38 +00:00
anders_k
9ebabcd509 Fix !finalize %1 string substitution
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6373 212acab6-be3b-0410-9dea-997c60f758d6
2013-06-05 10:23:46 +00:00