Commit graph

185 commits

Author SHA1 Message Date
anders_k
f69251d87e (C) 2021
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7245 212acab6-be3b-0410-9dea-997c60f758d6
2021-01-01 20:27:52 +00:00
anders_k
9036705c53 Fix the .h as well
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7217 212acab6-be3b-0410-9dea-997c60f758d6
2020-08-13 00:49:05 +00:00
anders_k
887d9f8723 Added LineParser::gettoken_intx with basic arithmetic expression handling for LoadAndSetImage, SectionSetFlags and SectionSetInstTypes.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7180 212acab6-be3b-0410-9dea-997c60f758d6
2020-05-02 21:53:41 +00:00
anders_k
e73d05f1f5 LoadAndSetImage can return the image handle
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7179 212acab6-be3b-0410-9dea-997c60f758d6
2020-05-01 13:15:03 +00:00
anders_k
322c7ac6d2 Added API for compiler host to choose a different output path on output error
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7169 212acab6-be3b-0410-9dea-997c60f758d6
2020-04-20 17:21:04 +00:00
anders_k
5887d6c60d Added IfShellVarContextAll and refactored flag instructions generation
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7152 212acab6-be3b-0410-9dea-997c60f758d6
2020-03-10 01:44:23 +00:00
anders_k
89fb04d0f6 (C) 2020
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7148 212acab6-be3b-0410-9dea-997c60f758d6
2020-01-01 21:13:57 +00:00
anders_k
52cd125973 Automatically double ampersands in the name attribute
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7131 212acab6-be3b-0410-9dea-997c60f758d6
2019-10-24 22:15:30 +00:00
anders_k
c0f3179285 Added the ManifestLongPathAware attribute
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7111 212acab6-be3b-0410-9dea-997c60f758d6
2019-08-16 19:07:02 +00:00
anders_k
fb6945ec36 Added ManifestMaxVersionTested
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7096 212acab6-be3b-0410-9dea-997c60f758d6
2019-06-06 00:42:08 +00:00
anders_k
b9c8d57bb2 Print "ANSI targets are deprecated" warning if Unicode/Target attributes are never used.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7077 212acab6-be3b-0410-9dea-997c60f758d6
2019-02-02 20:25:07 +00:00
anders_k
62d9a4c2f7 (C) 2019
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7072 212acab6-be3b-0410-9dea-997c60f758d6
2019-01-07 14:30:06 +00:00
anders_k
5b09b32668 VC6 cannot handle template class typedef of a template class with the same name (in a different namespace)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7047 212acab6-be3b-0410-9dea-997c60f758d6
2018-11-07 16:58:43 +00:00
anders_k
1afaca0e41 !undef now issues warnings instead of errors
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7039 212acab6-be3b-0410-9dea-997c60f758d6
2018-11-02 19:51:54 +00:00
anders_k
cce4695977 Refactored postbuild_cmd and !tempfile handling to help patch #280
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7025 212acab6-be3b-0410-9dea-997c60f758d6
2018-10-24 19:01:00 +00:00
anders_k
bfdec13982 List plug-in directories when plug-in call fails
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7011 212acab6-be3b-0410-9dea-997c60f758d6
2018-06-25 21:33:30 +00:00
anders_k
a39cba6f27 Stricter !delfile error/warning handling
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7008 212acab6-be3b-0410-9dea-997c60f758d6
2018-06-14 22:13:23 +00:00
anders_k
460b3f59a9 Initial groundwork for ARM64 support
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7001 212acab6-be3b-0410-9dea-997c60f758d6
2018-06-03 21:00:53 +00:00
anders_k
b0430b251b Preliminary support for disableWindowFiltering and gdiScaling manifest elements
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6993 212acab6-be3b-0410-9dea-997c60f758d6
2018-05-14 19:07:17 +00:00
anders_k
8f9cc7ff35 Fixed bug #1203, -CMDHELP should be printed to stdout
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6982 212acab6-be3b-0410-9dea-997c60f758d6
2018-02-04 21:19:55 +00:00
anders_k
18d25cf859 VC6 can't handle typename here but GCC requires it
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6973 212acab6-be3b-0410-9dea-997c60f758d6
2018-01-30 00:45:16 +00:00
anders_k
e17e508012 Attempt to fix VC6
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6972 212acab6-be3b-0410-9dea-997c60f758d6
2018-01-29 14:42:13 +00:00
anders_k
49471b3d84 (C) 2018
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6962 212acab6-be3b-0410-9dea-997c60f758d6
2018-01-02 01:51:26 +00:00
anders_k
34e9873d5f Added IntPtrOp alias
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6929 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-13 21:23:33 +00:00
anders_k
a51d89712c Added !gettlbversion and TLB reading support on POSIX
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6913 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-03 20:48:29 +00:00
anders_k
9f91316be0 Added experimental ManifestDPIAwareness attribute so we can declare PerMonitorV2 awareness
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6899 212acab6-be3b-0410-9dea-997c60f758d6
2017-09-14 17:10:33 +00:00
anders_k
ca009c196b Added !pragma warning error <#|all>, warning #, disable all, enable all, default all
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6898 212acab6-be3b-0410-9dea-997c60f758d6
2017-09-01 23:06:48 +00:00
kichik
fb2accece2 vc6 build errors
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6880 212acab6-be3b-0410-9dea-997c60f758d6
2017-07-23 19:53:39 +00:00
anders_k
17d5e5003f Refactored preprocessor instructions to separate source file
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6855 212acab6-be3b-0410-9dea-997c60f758d6
2017-05-03 12:08:09 +00:00
anders_k
c8370fd064 Added !pragma warning (patch #267)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6852 212acab6-be3b-0410-9dea-997c60f758d6
2017-04-25 13:09:41 +00:00
anders_k
3659de8e37 (C) 2017
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6834 212acab6-be3b-0410-9dea-997c60f758d6
2017-01-02 03:51:39 +00:00
anders_k
7f2ca3cdee Fixed bug #1122 StrCpy maxlen inconsistent behavior
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6810 212acab6-be3b-0410-9dea-997c60f758d6
2016-12-05 15:44:19 +00:00
anders_k
37c2cce029 Allow POSIX to see QUERYHOST constants even though there is no way to use them on those platforms
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6801 212acab6-be3b-0410-9dea-997c60f758d6
2016-11-23 00:38:57 +00:00
anders_k
04d6fe9367 Write error messages to stderr by default
Disabled if -O is used or if -NOTIFYHWND is valid and returns 0 to QUERYHOST:QH_ENABLESTDERR



git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6798 212acab6-be3b-0410-9dea-997c60f758d6
2016-11-22 21:17:00 +00:00
anders_k
388d994ada Added support for !finalize return value comparison
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6771 212acab6-be3b-0410-9dea-997c60f758d6
2016-07-14 10:53:25 +00:00
anders_k
1967160500 Copyright 2016
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6720 212acab6-be3b-0410-9dea-997c60f758d6
2016-03-11 19:16:38 +00:00
anders_k
ebc900f4bb Warn when the [License]LangString language id parameter is not a valid number
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6711 212acab6-be3b-0410-9dea-997c60f758d6
2016-02-26 16:16:29 +00:00
anders_k
4b0d6b1843 Use a warning helper function so "warn as error" works everywhere
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6709 212acab6-be3b-0410-9dea-997c60f758d6
2016-02-16 14:59:04 +00:00
anders_k
f88888388a Added experimental Target and CPU attributes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6664 212acab6-be3b-0410-9dea-997c60f758d6
2015-12-09 00:47:50 +00:00
anders_k
ce249976f7 Preprocessor code in dead blocks need to be ignored even if it is invalid
Test case:
!macro dummy p1
!macroend
!if 0 ; The next line does not properly quote its string but it is not !else nor !endif so it has to be ignored
!insertmacro dummy "bar'
!endif



git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6632 212acab6-be3b-0410-9dea-997c60f758d6
2015-11-05 04:46:14 +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
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
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
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
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
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
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
anders_k
0a8c72c950 !insertmacro allows macro recursion (RFE #497)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6511 212acab6-be3b-0410-9dea-997c60f758d6
2014-07-04 23:27:04 +00:00
anders_k
7ee1a114a9 Minor typo and indentation fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6510 212acab6-be3b-0410-9dea-997c60f758d6
2014-07-02 20:03:18 +00:00
anders_k
0bffaecea3 Added preprocess only mode (/[SAFE]PPO switch)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6495 212acab6-be3b-0410-9dea-997c60f758d6
2014-06-19 19:06:49 +00:00