Commit graph

172 commits

Author SHA1 Message Date
anders_k
e7ac6581e4 Documentation fixes and clarifications
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6728 212acab6-be3b-0410-9dea-997c60f758d6
2016-03-27 23:24:43 +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
95dfc73889 Make sure we have a valid .chm file in the 3.0 installer as well
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6677 212acab6-be3b-0410-9dea-997c60f758d6
2015-12-09 22:52:21 +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
b54c831ff0 FileReadUTF16LE skips optional BOM and FileWriteUTF16LE can write a BOM with the /BOM switch
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6626 212acab6-be3b-0410-9dea-997c60f758d6
2015-10-26 23:29:39 +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
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
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
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
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
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
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
45e80b52d5 SafePPO should consider !makensis as unsafe (for now)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6499 212acab6-be3b-0410-9dea-997c60f758d6
2014-06-22 00:22:02 +00:00
anders_k
bf2f0fad80 Added !makensis command
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6498 212acab6-be3b-0410-9dea-997c60f758d6
2014-06-21 23:55:24 +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
anders_k
c75a00bbe7 2014 and fixed some minor typos
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6478 212acab6-be3b-0410-9dea-997c60f758d6
2014-05-13 15:51:45 +00:00
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
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
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
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
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
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
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
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
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
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
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
940a12b76c Fixed two old token definition bugs:
!if only supports a single expression

!undef only takes one parameter

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6179 212acab6-be3b-0410-9dea-997c60f758d6
2011-11-17 21:04:20 +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
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
1a6e32bce9 Fixed some old typos
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6163 212acab6-be3b-0410-9dea-997c60f758d6
2011-09-23 17:36:30 +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
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
anders_k
d526c78d05 Added !define /ifndef and !define /redef optional arguments
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6097 212acab6-be3b-0410-9dea-997c60f758d6
2010-06-10 20:42:50 +00:00
wizou
24c02b97d0 Unicode port: adding UTF-16LE file functions
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6089 212acab6-be3b-0410-9dea-997c60f758d6
2010-05-17 15:11:29 +00:00