Commit graph

80 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
654c8ad4d7 Added nsExec /MBCS switch
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7221 212acab6-be3b-0410-9dea-997c60f758d6
2020-08-22 16:24:14 +00:00
anders_k
5c78d6fafe Try to work around the mingw-w64 kernel32:OpenThreadToken library issue
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7192 212acab6-be3b-0410-9dea-997c60f758d6
2020-06-29 23:08:12 +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
2bae3414ba Fix minor GCC warnings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7130 212acab6-be3b-0410-9dea-997c60f758d6
2019-10-24 19:27:37 +00:00
anders_k
8a21b59c93 Fix truncation warning for 64-bit
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7125 212acab6-be3b-0410-9dea-997c60f758d6
2019-10-07 18:01:16 +00:00
anders_k
27c8277a82 Help CharNext handle surrogate pairs
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7122 212acab6-be3b-0410-9dea-997c60f758d6
2019-09-15 17:10:26 +00:00
anders_k
24d4c2678a Fixed nsExec Unicode and tab output parsing (bug #1232)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7121 212acab6-be3b-0410-9dea-997c60f758d6
2019-09-11 23:36:32 +00:00
anders_k
8b652965b1 Fix WoW64 detection on ARM64 so we can avoid using the CUI helper application
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7087 212acab6-be3b-0410-9dea-997c60f758d6
2019-03-04 22:15:41 +00:00
anders_k
0aaca67c0d Added required Pop's to nsExec example usage
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6967 212acab6-be3b-0410-9dea-997c60f758d6
2018-01-12 02:01:44 +00:00
anders_k
871589cab4 Unicode nsExec now supports the /OEM switch (bug #1171)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6835 212acab6-be3b-0410-9dea-997c60f758d6
2017-01-15 15:20:07 +00:00
anders_k
1c1d1d5e12 Fixed all VS2015 warnings except C4577 ('noexcept' used with no exception handling mode specified)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6627 212acab6-be3b-0410-9dea-997c60f758d6
2015-10-30 03:55:30 +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
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
wizou
74ffaada4e Merging various fixes from latest Jim Park repository
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6096 212acab6-be3b-0410-9dea-997c60f758d6
2010-05-28 14:09:08 +00:00
wizou
e097a25855 nsExec Unicode port by Jim Park (is this correct??)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6092 212acab6-be3b-0410-9dea-997c60f758d6
2010-05-19 15:21:34 +00:00
wizou
d59234c852 nsExec small simplification
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6091 212acab6-be3b-0410-9dea-997c60f758d6
2010-05-19 15:18:54 +00:00
wizou
408a5d5169 Adapting CHAR4_TO_DWORD-style constructions. No change in exehead.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6054 212acab6-be3b-0410-9dea-997c60f758d6
2010-04-14 15:51:48 +00:00
wizou
acf9a8c21f Jim Park's Unicode NSIS merging - Step 4 : merging more TCHAR stuff that shouldn't have any impact
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6041 212acab6-be3b-0410-9dea-997c60f758d6
2010-03-29 14:24:47 +00:00
wizou
752d7d239a Jim Park's Unicode NSIS merging - Step 1 : switch to TCHARs where relevant.
Compiler output is identical before & after this step

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/branches/wizou@6036 212acab6-be3b-0410-9dea-997c60f758d6
2010-03-24 17:22:56 +00:00
pabs3
eff14a4702 Install the pluginapi stuff in a subdirectory.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5922 212acab6-be3b-0410-9dea-997c60f758d6
2009-02-04 14:08:31 +00:00
kichik
79da5e1cb5 renamed plugin.* to pluginapi.*
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5856 212acab6-be3b-0410-9dea-997c60f758d6
2008-12-20 08:49:26 +00:00
kichik
4ba8da04fd switch to plugin.h
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5832 212acab6-be3b-0410-9dea-997c60f758d6
2008-12-12 17:18:43 +00:00
kichik
f2cd51e787 fixed bug #1909458 - nsEcec: cannot handle exit code 259
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5584 212acab6-be3b-0410-9dea-997c60f758d6
2008-03-29 17:53:23 +00:00
kichik
8ce5f95185 it should call the old code path if NOT running under WOW64 (though the hack wouldn't work anyway... :( )
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5543 212acab6-be3b-0410-9dea-997c60f758d6
2008-02-16 21:46:52 +00:00
kichik
8fba6791ad implemented RFE #1778973 - nsExec & ExecDos - Support DisableX64FSRedirection feature
also fixed bug #1889317

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5542 212acab6-be3b-0410-9dea-997c60f758d6
2008-02-16 18:30:47 +00:00
kichik
502e50c094 WaitForSingleObject is simpler than looping on GetExitCodeProcess and allows the process to return STILL_ACTIVE
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5364 212acab6-be3b-0410-9dea-997c60f758d6
2007-11-09 18:42:03 +00:00
kichik
183a176b32 probably exit nsExec's internal process with ExitProcess
without this, if running nsExec immediately after booting, it'd always return 0 even if CreateProcess failed to execute
more @ http://forums.winamp.com/showthread.php?threadid=279683

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5363 212acab6-be3b-0410-9dea-997c60f758d6
2007-11-09 18:29:18 +00:00
pabs3
747ad310e5 Kill some compiler warnings under Linux and mingw32
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4994 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-11 15:58:46 +00:00
kichik
196d1d0028 nsExec::Exec example
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4895 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 15:23:40 +00:00
kichik
80c1dfbc16 fixed bug #1605581 - nsExec:ExecToLog is unstable in silent mode
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4835 212acab6-be3b-0410-9dea-997c60f758d6
2006-12-01 16:29:36 +00:00
kichik
2971d77008 typo
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4804 212acab6-be3b-0410-9dea-997c60f758d6
2006-11-02 20:24:56 +00:00
kichik
c4a4683f5d applied patch #1355653 - /OEM switch
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4412 212acab6-be3b-0410-9dea-997c60f758d6
2005-11-14 20:06:01 +00:00
kichik
21ba41afb9 proper clean-up in case of path detection failure
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4372 212acab6-be3b-0410-9dea-997c60f758d6
2005-11-05 13:51:57 +00:00
kichik
230a418822 proper clean-up in case of bad input
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4371 212acab6-be3b-0410-9dea-997c60f758d6
2005-11-05 13:50:24 +00:00
kichik
373eac3da8 fixed bad input test
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4370 212acab6-be3b-0410-9dea-997c60f758d6
2005-11-05 13:41:46 +00:00
kichik
60026493e7 search for /TIMEOUT= only at the beginning of the input string
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4369 212acab6-be3b-0410-9dea-997c60f758d6
2005-11-05 13:39:57 +00:00
kichik
90919b0ea6 applied patch #1346737 - OEM nsExec
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4368 212acab6-be3b-0410-9dea-997c60f758d6
2005-11-05 13:22:37 +00:00
kichik
d7592d0f84 replaced by scons
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4047 212acab6-be3b-0410-9dea-997c60f758d6
2005-05-21 16:21:32 +00:00
kichik
53fa1d20ac install and distribute examples, contribs and documentation
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4005 212acab6-be3b-0410-9dea-997c60f758d6
2005-04-30 18:04:55 +00:00
kichik
4a77cdc9fe less code in SConscripts, more shared code in SConstruct
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3986 212acab6-be3b-0410-9dea-997c60f758d6
2005-04-22 16:51:00 +00:00
kichik
b604cdfe3f new build system using SCons
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3969 212acab6-be3b-0410-9dea-997c60f758d6
2005-04-16 18:48:50 +00:00
kichik
ccf2bb96a5 applied patch #1164307 - Fixes to allow building Contrib/ on debian (minus Makefiles)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3923 212acab6-be3b-0410-9dea-997c60f758d6
2005-03-17 21:26:59 +00:00
kichik
d2ba6bd725 fixed problems with quotes and spaces
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3566 212acab6-be3b-0410-9dea-997c60f758d6
2004-06-18 17:59:36 +00:00
kichik
2b3da85bae always create a valid standard input handle
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3512 212acab6-be3b-0410-9dea-997c60f758d6
2004-03-12 10:28:49 +00:00
kichik
ebd0852b60 fixed mishandling of MBCS chars
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3441 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-31 19:54:45 +00:00
kichik
d9d0eab327 no need for this return instruction
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3417 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-26 03:29:41 +00:00
kichik
f915329242 Call the same DllMain for debug and release builds
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3133 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-12 20:24:53 +00:00
kichik
093f1f9bb6 /CMD no longer exists
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2923 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-16 16:44:06 +00:00
kichik
fabf2f79ea Empty lines were not printed (this time it's really fixed)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2794 212acab6-be3b-0410-9dea-997c60f758d6
2003-08-08 13:56:41 +00:00