Commit graph

1982 commits

Author SHA1 Message Date
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
d0abb34ae8 Don't allow scripts to delete a HKEY root
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6964 212acab6-be3b-0410-9dea-997c60f758d6
2018-01-05 12:53:01 +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
961a651665 Fixed silly 64-bit trunction warning
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6957 212acab6-be3b-0410-9dea-997c60f758d6
2017-12-03 18:10:24 +00:00
anders_k
e3e6ee73bc Force HEASLR DllCharacteristics when ASLR bit is set for 64-bit targets
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6953 212acab6-be3b-0410-9dea-997c60f758d6
2017-11-28 18:15:44 +00:00
anders_k
bcef923727 Try to avoid clobbering SysLink GWLP_USERDATA
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6949 212acab6-be3b-0410-9dea-997c60f758d6
2017-11-05 18:36:33 +00:00
anders_k
dda1998421 Added ~, !, && and || !define /math operators
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6947 212acab6-be3b-0410-9dea-997c60f758d6
2017-11-04 17:59:37 +00:00
anders_k
8d756f41c7 A quick hack for our outdated boost library because std::auto_ptr was deprecated in C++11 and removed in C++17
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6946 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-30 17:18:25 +00:00
anders_k
39de85be70 Make sure !system outputs whatever is left in the pipe even if there is no newline
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6940 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-24 13:19:00 +00:00
anders_k
6a5876bbc8 MakeNSIS now returns 0 for various successful information commands (bug #1193)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6939 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-23 17:55:23 +00:00
anders_k
28734dabee Cast away pointless warning because A) 0xffffffffUL will fit in a 64-bit off_t, or B) LONG_MAX is used
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6936 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-21 01:41:27 +00:00
anders_k
636d774750 Added POSIX mmap helper function used by VxD parser (patch #284)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6935 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-21 01:29:11 +00:00
anders_k
b4b709769e Support named version resource in VxD files so we can handle MSGame.VxD
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6934 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-19 14:16:09 +00:00
anders_k
8de72ec7b1 Added Int64Fmt
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6931 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-15 16:57:26 +00:00
anders_k
1a039ca71f Added IntPtrCmp, IntPtrCmpU, Int64Cmp and Int64CmpU
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6930 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-14 16:49:40 +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
99235da725 Added IntOp and System::Int64Op >>> SHR operator
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6926 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-08 15:26:54 +00:00
kichik
80bc65beb1 support python 3 for building
python 2.6 is no longer supported

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6921 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-06 18:23:05 +00:00
anders_k
09134d125e Save a couple of bytes by comparing the UTF16LE BOM as a 16-bit number
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6920 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-06 17:47:21 +00:00
anders_k
9764f37904 VIAddVersionKey and SetFont now supports hex numbers in the /LANG= parameter
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6919 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-06 14:30:54 +00:00
anders_k
daa57f1f33 Optimize away more calls to GetModuleHandle(0) with __ImageBase under MSVC
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6918 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-06 13:21:51 +00:00
anders_k
5f1651ab91 Avoid using SEEK_END when possible
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6917 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-05 18:11:03 +00:00
anders_k
1ae118af99 Refactored GetDLLVersion
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6916 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-04 23:40:45 +00:00
anders_k
8e4b1c8e5f Removed optional TLB parser debug output
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6915 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-04 18:20:55 +00:00
anders_k
5bb70ce76b Added POSIX TLB reader functions
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6914 212acab6-be3b-0410-9dea-997c60f758d6
2017-10-04 12:25:35 +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
anders_k
7a18d3e4bc Make sure we always install the "native" RegTool binary.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6890 212acab6-be3b-0410-9dea-997c60f758d6
2017-07-24 21:38:21 +00:00
kichik
1f66c3bcb0 more vc6 weirdness
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6885 212acab6-be3b-0410-9dea-997c60f758d6
2017-07-24 00:28:26 +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
000a1b33ff Minor documentation fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6878 212acab6-be3b-0410-9dea-997c60f758d6
2017-07-17 21:44:04 +00:00
anders_k
88e2fd42d0 Logging build now prints EW_SETFLAG changes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6876 212acab6-be3b-0410-9dea-997c60f758d6
2017-06-23 12:59:44 +00:00
anders_k
2553c6e550 $LocalAppData now resolves to the ProgramData folder in the "SetShellVarContext all" context
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6875 212acab6-be3b-0410-9dea-997c60f758d6
2017-06-23 01:11:30 +00:00
anders_k
94dd438510 Added the HKCR32, HKCR64, HKCU32, HKCU64, HKLM32 and HKLM64 root keys and the experimental HK*ANY root keys.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6871 212acab6-be3b-0410-9dea-997c60f758d6
2017-06-06 19:51:43 +00:00
anders_k
bcef20b32d Bring back optimized mystrcpy(tmpbuf, _T("NUL")) from NSIS2
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6869 212acab6-be3b-0410-9dea-997c60f758d6
2017-06-05 21:43:07 +00:00
anders_k
65bfc90ce7 Add space between disk space value and unit (Bug #1132)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6868 212acab6-be3b-0410-9dea-997c60f758d6
2017-06-05 20:20:11 +00:00
anders_k
f5a9b401df Don't use ShellExecute, only ShellExecuteEx
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6867 212acab6-be3b-0410-9dea-997c60f758d6
2017-06-05 01:01:28 +00:00
anders_k
b558dea54d Unsupported SetRegView mode must fail all registry operations
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6865 212acab6-be3b-0410-9dea-997c60f758d6
2017-06-04 22:48:13 +00:00
anders_k
a2aa3ed305 TravisCI OSX instance needs cppunit v1.13.2
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6864 212acab6-be3b-0410-9dea-997c60f758d6
2017-06-03 02:56:46 +00:00
anders_k
204dbb0443 Added WriteRegNone
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6863 212acab6-be3b-0410-9dea-997c60f758d6
2017-05-29 16:25:18 +00:00
anders_k
6271e87972 SendMessage /TIMEOUT= parameter should not be case-sensitive.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6862 212acab6-be3b-0410-9dea-997c60f758d6
2017-05-29 13:12:41 +00:00
anders_k
d39ef1d219 Variables used in Caption can now be set in .onGuiInit (RFE #539)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6860 212acab6-be3b-0410-9dea-997c60f758d6
2017-05-22 18:10:19 +00:00
anders_k
ce7078517f Include CPU architecture in the RegTool filename so Library.nsh always picks the correct version
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6859 212acab6-be3b-0410-9dea-997c60f758d6
2017-05-14 16:16:30 +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
e004b5893e Use a internal command to detect the CHM header because the !searchparse hack fails with a encoding error if the ACP codepage is 936.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6853 212acab6-be3b-0410-9dea-997c60f758d6
2017-04-25 13:58:43 +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
kichik
1b11115193 log build fix for anders
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6851 212acab6-be3b-0410-9dea-997c60f758d6
2017-04-18 19:21:53 +00:00
anders_k
450343788f Fixed two GCC POSIX warnings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6849 212acab6-be3b-0410-9dea-997c60f758d6
2017-04-14 21:48:55 +00:00