Commit graph

149 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
274a74ebef MakeNSISW should not load libraries from the current directory because we don't control that directory when started from the shell (file associations).
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6725 212acab6-be3b-0410-9dea-997c60f758d6
2016-03-23 13:42:16 +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
8577c8e9ae * MakeNSISW symbol sets don't need movable memory
* Use helper functions to read&write MRU and symbol set strings
* Don't create empty MRU key when there is nothing to save
* Made some helper functions static


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6618 212acab6-be3b-0410-9dea-997c60f758d6
2015-09-28 16:08:54 +00:00
anders_k
873e860f57 MakeNSISW now uses WinInet when checking for updates
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6604 212acab6-be3b-0410-9dea-997c60f758d6
2015-09-07 21:31:50 +00:00
anders_k
9152c24610 SetCompressorStats must zero terminate the buffer from EM_GETLINE!
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6560 212acab6-be3b-0410-9dea-997c60f758d6
2014-10-23 15:34:10 +00:00
anders_k
9eb4035b08 Must check if wParam matches MakensisAPI::QH_*
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6559 212acab6-be3b-0410-9dea-997c60f758d6
2014-10-22 16:49:45 +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
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
anders_k
d66c9a492f Better handling of incomplete WCHAR reads from stdout
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6525 212acab6-be3b-0410-9dea-997c60f758d6
2014-07-17 09:21:07 +00:00
anders_k
481d383c76 Fixed MakeNSISW stdout log reader when the buffer is almost full
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6523 212acab6-be3b-0410-9dea-997c60f758d6
2014-07-16 20:22:44 +00:00
anders_k
8ed10146ef MakeNSIS WM_COPYDATA notify messages now use the QH_OUTPUTCHARSET encoding if specified by the host. CP_ACP is the default for compatibility with old IDEs.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6490 212acab6-be3b-0410-9dea-997c60f758d6
2014-06-11 22:01:38 +00:00
anders_k
36deb84820 64bit fixes and optimizations
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6486 212acab6-be3b-0410-9dea-997c60f758d6
2014-05-19 22:03:09 +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
942ea1d465 Win64 fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6405 212acab6-be3b-0410-9dea-997c60f758d6
2013-08-07 23:04:23 +00:00
anders_k
4d46324599 Fixed MakeNSISW default pushbutton and tab order
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6403 212acab6-be3b-0410-9dea-997c60f758d6
2013-08-07 19:26:03 +00:00
anders_k
9a63b529dd MakeNsisW About dialog close button should close the dialog
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6401 212acab6-be3b-0410-9dea-997c60f758d6
2013-08-05 14:53:57 +00:00
anders_k
47e481a3bf Default verbosity is /V3 without logo, MakeNSISW still uses /V4
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6375 212acab6-be3b-0410-9dea-997c60f758d6
2013-06-08 18:48:38 +00:00
anders_k
7d930ed452 MakeNSISW should request UTF16LE output
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6370 212acab6-be3b-0410-9dea-997c60f758d6
2013-05-28 20:07:47 +00:00
anders_k
1cf3d5cb22 MakeNsisW: Functional size gripper and other minor fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6368 212acab6-be3b-0410-9dea-997c60f758d6
2013-05-26 19:47:22 +00:00
anders_k
0653f46c07 StdOut Unicode support, controlled by /OUTPUTCHARSET and/or existing BOM if redirected.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6350 212acab6-be3b-0410-9dea-997c60f758d6
2013-05-04 13:32:47 +00:00
anders_k
e43d5a3b9e Add new (optional) makensis win32 abort event to avoid multiple instance issues
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6298 212acab6-be3b-0410-9dea-997c60f758d6
2013-03-14 18:00:00 +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
2d99d7ad3e Removed unused variables and fixed GCC warnings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6259 212acab6-be3b-0410-9dea-997c60f758d6
2012-09-08 02:50:09 +00:00
anders_k
cf4e5cf132 Fix a lot of MinGW/GCC warnings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6168 212acab6-be3b-0410-9dea-997c60f758d6
2011-11-09 18:12:57 +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
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
wizou
428ae80ab1 Unicode port: Adapted MakensisW & zip2exe for UTF-8 (avoid cutting sequence). Also fix a bug where they would get stuck if output log was multiple of 1023 bytes. Simplification of reading loop.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6085 212acab6-be3b-0410-9dea-997c60f758d6
2010-05-07 13:54:03 +00:00
wizou
743ad095f5 Unicode port: Turn console & output logs to UTF-8. Adapted MakensisW for UTF-8
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6083 212acab6-be3b-0410-9dea-997c60f758d6
2010-05-05 14:14:48 +00:00
wizou
68c5a5751e MakeNSISW now uses RichEdit 2.0, compatible with Unicode (exehead UIs already uses it anyway)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6069 212acab6-be3b-0410-9dea-997c60f758d6
2010-04-21 09:09:47 +00:00
wizou
2d3bf19b0d Bug fix & simplification on SetArgv
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6065 212acab6-be3b-0410-9dea-997c60f758d6
2010-04-19 10:06:48 +00:00
wizou
64a0f32e52 more simple TCHARs fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6047 212acab6-be3b-0410-9dea-997c60f758d6
2010-04-12 16:00:17 +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
kichik
efebf6bedd fixed bug #1891066 - Open Script Folder runs executable instead
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5541 212acab6-be3b-0410-9dea-997c60f758d6
2008-02-16 17:53:17 +00:00
kichik
d9d6a9da51 fixed bug #1796053 - makensisw command-line parsing error due to GlobalAlloc/GlobalFree mismatch
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5276 212acab6-be3b-0410-9dea-997c60f758d6
2007-09-18 20:14:25 +00:00
kichik
2263524b66 allocate g_sdata.script_cmd_args as GMEM_MOVEABLE
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5100 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-18 18:19:02 +00:00
kichik
c72c1d9520 free riched32.dll outside of the wndproc
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5099 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-17 20:49:23 +00:00
kichik
7d1f948631 - properly allocate size in AddScriptCmdArgs
- do clean-up in WM_DESTROY, not only WM_CLOSE


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5098 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-17 20:41:17 +00:00
kichik
45e24287fc removed double initialization
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5091 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-16 21:03:54 +00:00
kichik
820a1bb7a9 fully intialize g_sdata and delete g_sdata.script_cmd_args
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5090 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-16 21:00:53 +00:00
kichik
a96f348c0a fixed some warnings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5059 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-11 21:42:46 +00:00
kichik
7f37f6ff24 allow only one script in the command line and don't process any arguments after it
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5048 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-11 20:03:15 +00:00
kichik
845566790d more clean-up:
* removed ResetInputScript()
 * don't edit g_sdata.script for CreateProcess
 * use SetScript in LoadMRUFile
 * proper and clear allocation of g_sdata.compile_command in CompileNSISScript()


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5047 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-10 21:07:21 +00:00
kichik
3a657559b0 properly initialize script_cmd_args for each SetScript
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5046 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-10 20:41:01 +00:00
kichik
fb3bcd24be g_sdata.script is expected not to be NULL
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5045 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-10 20:34:05 +00:00
kichik
d545d00bda fixed bug #1696534 - Broken Parameter Handling for Makensisw.exe v.2.3
the entire command line processing and handling of g_sdata.script is overly complex and apparently a bit malfunctioning... for example, g_sdata.script, while expected to contain just the file name, contains every command line argument passed to makensisw and also quotes


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5044 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-10 20:31:20 +00:00
kichik
39e22a96dd added COMPRESSOR_NONE_SELECTED instead of (NCOMPRESSOR)-1
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5043 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-10 19:48:54 +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
28a3b53b05 implemeneted RFE #1666501 - MakeNSISw: esc -> close
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4951 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-23 12:42:21 +00:00
kichik
6e6b20ea64 fixed bug #1411970 - Settings in HKLM instead of HKCU?
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4874 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-24 12:51:26 +00:00