Commit graph

1764 commits

Author SHA1 Message Date
anders_k
5d7640c988 TOK_* instruction handlers in doCommand() cannot use PRINTHELP() if they also use eattoken()!
!define "name" "value" always displays error if there are too many arguments, not just one too many


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6621 212acab6-be3b-0410-9dea-997c60f758d6
2015-10-10 12:29:34 +00:00
anders_k
6542de9f94 Changed "Command line defined" compiler message verbosity level from 4 to 3
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6620 212acab6-be3b-0410-9dea-997c60f758d6
2015-10-10 11:31:27 +00:00
anders_k
12cab3f3db Allow makensis to use stubs and plugins of different bitness, based on patch #265
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6619 212acab6-be3b-0410-9dea-997c60f758d6
2015-10-01 17:32:56 +00:00
anders_k
6de4fbc743 Don't allow empty path in !AddPluginDir
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6617 212acab6-be3b-0410-9dea-997c60f758d6
2015-09-26 14:19:39 +00:00
anders_k
fe491ddf94 Changed the order of the zlib lib files SConstruct searches for so it can find the MinGW specific .a first. 64-bit MinGW has problems with a MSVC generated lib file.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6615 212acab6-be3b-0410-9dea-997c60f758d6
2015-09-19 18:54:02 +00:00
anders_k
6d534850e7 * TOK_PLUGINDIR path can't be const because of PATH_CONVERT(path) on POSIX
* Remove truncate_cast usage from fileform.c


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6613 212acab6-be3b-0410-9dea-997c60f758d6
2015-09-19 14:07:14 +00:00
anders_k
5615d42881 * !AddIncludeDir displays the cpu architecture in the script message if specified as a parameter
* Removed unused SYSTEM_PARTIALCALLSUPPORT define
* Fixed minor typos
* Allow MSVC_USE_SCRIPT to be specified on the commandline or in the environment


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6611 212acab6-be3b-0410-9dea-997c60f758d6
2015-09-18 23:16:34 +00:00
anders_k
940277d9d8 * block_header::offset is now pointer sized in exehead
* Wininet.h -> wininet.h for POSIX


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6608 212acab6-be3b-0410-9dea-997c60f758d6
2015-09-18 15:55:56 +00:00
anders_k
286edd20c4 * Basic System::Call support when compiling with 64-bit MinGW/GCC toolchain
* Win64 fixes


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6607 212acab6-be3b-0410-9dea-997c60f758d6
2015-09-17 14:30:07 +00:00
anders_k
757d16f937 Sprinkle some constness on CResourceDirectoryEntry
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6606 212acab6-be3b-0410-9dea-997c60f758d6
2015-09-10 12:14:20 +00:00
anders_k
e58680c996 CResourceDirectoryEntry::GetName() does not need to duplicate the string
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6603 212acab6-be3b-0410-9dea-997c60f758d6
2015-09-06 20:15:56 +00:00
anders_k
5c6dfdca9a !system/!execute: XCopy.exe/ChCp.com (and other tools using ulib.dll?) does not work without a valid StdIn so we provide a empty pipe
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6601 212acab6-be3b-0410-9dea-997c60f758d6
2015-09-03 11:06:18 +00:00
anders_k
87ad351f1b Fixed InstType<Get|Set>Text token help string
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6600 212acab6-be3b-0410-9dea-997c60f758d6
2015-08-26 12:01:20 +00:00
anders_k
10448ec632 RequestExecutionLevel now defaults to admin
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6599 212acab6-be3b-0410-9dea-997c60f758d6
2015-08-07 00:13:36 +00:00
anders_k
06f3fbe52f *Now adds the Win10 manifest by default
*Updated WinVer with Win10 version


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6593 212acab6-be3b-0410-9dea-997c60f758d6
2015-07-30 18:47:09 +00:00
anders_k
20866470fa Added PESubsysVer attribute
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6592 212acab6-be3b-0410-9dea-997c60f758d6
2015-07-27 20:41:17 +00:00
anders_k
c679845ad6 ReserveFile /plugin now searches folders added with !AddPluginDir
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6591 212acab6-be3b-0410-9dea-997c60f758d6
2015-07-27 19:32:32 +00:00
anders_k
ab554ae939 Use the system link color on our custom link controls
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6589 212acab6-be3b-0410-9dea-997c60f758d6
2015-07-27 18:24:45 +00:00
anders_k
113be9b813 Use the correct system metric to size the invisible column-header on the instfiles page
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6588 212acab6-be3b-0410-9dea-997c60f758d6
2015-06-25 20:38:20 +00:00
anders_k
c89cac5262 Fixed minor issues and typos
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6584 212acab6-be3b-0410-9dea-997c60f758d6
2015-05-14 20:17:14 +00:00
anders_k
4ddcef2453 Fixed 4+ TiB freespace calculation bug (bugs #1115 & #896)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6582 212acab6-be3b-0410-9dea-997c60f758d6
2015-05-14 18:41:06 +00:00
anders_k
1343d4d1e1 Fixed CreateShortcut /NoWorkingDir token parsing bug
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6581 212acab6-be3b-0410-9dea-997c60f758d6
2015-02-26 18:44:15 +00:00
anders_k
d6d4da1bae Added !appendfile /RawNL switch
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6580 212acab6-be3b-0410-9dea-997c60f758d6
2015-02-26 18:19:37 +00:00
anders_k
cd4363aca8 Exec[Wait] now sets the CREATE_DEFAULT_ERROR_MODE flag when creating a new process
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6579 212acab6-be3b-0410-9dea-997c60f758d6
2015-02-18 18:52:41 +00:00
anders_k
c853ef31a0 Updated copyright details
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6578 212acab6-be3b-0410-9dea-997c60f758d6
2015-02-14 22:27:29 +00:00
anders_k
9ff4b3ef43 (C) 2015
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6577 212acab6-be3b-0410-9dea-997c60f758d6
2015-02-06 21:43:39 +00:00
anders_k
b28ce8b1d8 Added missing newline in compiler output for TOK_GETFUNCTIONADDR, TOK_GETLABELADDR and TOK_GETCURRENTADDR
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6575 212acab6-be3b-0410-9dea-997c60f758d6
2015-02-03 23:35:31 +00:00
anders_k
6ea16bd7fa Use SizeOfRawData and not VirtualSize when looking for the export section in a on-disk plugin dll
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6569 212acab6-be3b-0410-9dea-997c60f758d6
2014-11-14 22:00:46 +00:00
anders_k
2afe5ca95e Fake the LPTSTR type if necessary for MakeNSIS on POSIX
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6567 212acab6-be3b-0410-9dea-997c60f758d6
2014-10-26 23:22:27 +00:00
anders_k
6adc39c848 Math plugin needs tchar.h
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6561 212acab6-be3b-0410-9dea-997c60f758d6
2014-10-23 16:02:16 +00:00
anders_k
46ac05004d Preliminary ManifestSupportedOS and WinVer.nsh Win10 support
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6558 212acab6-be3b-0410-9dea-997c60f758d6
2014-10-21 23:13:26 +00:00
anders_k
eb5d77214a Patch #258, Makensisw x64 fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6557 212acab6-be3b-0410-9dea-997c60f758d6
2014-10-12 20:09:35 +00:00
anders_k
e36bbf1b94 RunChildProcessRedirected takes a narrow string in the legacy ANSI mode
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6547 212acab6-be3b-0410-9dea-997c60f758d6
2014-10-05 22:18:29 +00:00
kichik
14fcfbe1a8 fixed bug #1098 so test-code works on ubuntu now
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6545 212acab6-be3b-0410-9dea-997c60f758d6
2014-10-05 21:52:03 +00:00
kichik
59bdbf2614 fix gcc build
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6543 212acab6-be3b-0410-9dea-997c60f758d6
2014-10-05 21:04:19 +00:00
kichik
758fcd8ce6 fixed vs2012 builds
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6542 212acab6-be3b-0410-9dea-997c60f758d6
2014-10-05 20:55:20 +00:00
anders_k
d42a4f16a6 Display a "plugin not found" error message when a invalid command looks like a plugin call.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6541 212acab6-be3b-0410-9dea-997c60f758d6
2014-08-21 13:15:07 +00:00
anders_k
ec5f767d74 Build final include file path with the same path passed to dir_reader when enumerating include_dirs list.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6539 212acab6-be3b-0410-9dea-997c60f758d6
2014-08-18 14:44:22 +00:00
anders_k
7ae2e8f84f * Added IsWow64 to x64.nsh and fixed RunningX64 for 64-bit installers.
* NSIS_AMD64 and NSIS_IX86 defines added for CPU target detection



git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6538 212acab6-be3b-0410-9dea-997c60f758d6
2014-08-15 20:25:18 +00:00
anders_k
3c2a937cab Added PEDllCharacteristics attribute and changed default DllCharacteristics to TS_AWARE+NO_SEH+NX_COMPAT+DYNAMIC_BASE
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6537 212acab6-be3b-0410-9dea-997c60f758d6
2014-08-15 19:15:06 +00:00
anders_k
0f264e9f5a Warn if !packhdr system() call returns non-zero
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6536 212acab6-be3b-0410-9dea-997c60f758d6
2014-08-07 12:31:51 +00:00
anders_k
fd6400d44d * ChangeUI should warn when it cannot find a dialog.
* CDialogTemplate::Save needs to free the template with the correct function.


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6535 212acab6-be3b-0410-9dea-997c60f758d6
2014-08-05 13:53:20 +00:00
anders_k
9950ce1432 Fixed MinGW (GCC 4.5.2)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6530 212acab6-be3b-0410-9dea-997c60f758d6
2014-07-19 19:21:43 +00:00
kichik
5bfd937bd2 another fix for mingw build
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6529 212acab6-be3b-0410-9dea-997c60f758d6
2014-07-19 05:22:47 +00:00
anders_k
ad03365921 Don't allow !addincludedir with trailing path separator to propagate to !include
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6526 212acab6-be3b-0410-9dea-997c60f758d6
2014-07-18 16:37:08 +00:00
anders_k
f0e367d00d Fixed !unmacrodef...again
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6522 212acab6-be3b-0410-9dea-997c60f758d6
2014-07-16 18:10:28 +00:00
anders_k
a560e2411c !makensis on POSIX does not support -OUTPUTCHARSET
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6521 212acab6-be3b-0410-9dea-997c60f758d6
2014-07-12 11:08:37 +00:00
anders_k
89a2cbb770 Added /WX compiler switch (treat warnings as errors)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6520 212acab6-be3b-0410-9dea-997c60f758d6
2014-07-11 21:57:00 +00:00
anders_k
e7b3911e53 If <cwchar> is included by libc++ then clang has problems picking the correct overloaded function (bug #1085)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6518 212acab6-be3b-0410-9dea-997c60f758d6
2014-07-08 18:35:54 +00:00
anders_k
edd80964a7 Tabs to spaces and minor cleanup
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6514 212acab6-be3b-0410-9dea-997c60f758d6
2014-07-05 11:55:28 +00:00