Commit graph

38 commits

Author SHA1 Message Date
anders_k
e63fa6c53b Win64 fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6413 212acab6-be3b-0410-9dea-997c60f758d6
2013-09-06 23:48:59 +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
59be675382 System: Minor x64 fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6260 212acab6-be3b-0410-9dea-997c60f758d6
2012-09-10 22:56:41 +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
7cd38f2367 System plugin: Try harder to find dll export function
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6243 212acab6-be3b-0410-9dea-997c60f758d6
2012-06-21 23:13:05 +00:00
anders_k
8aa67f8987 System plugin: Basic x64 fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6222 212acab6-be3b-0410-9dea-997c60f758d6
2012-03-06 23:09:23 +00:00
anders_k
2132661644 System plugin: Prefer A/W export when t type is used
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6220 212acab6-be3b-0410-9dea-997c60f758d6
2012-03-06 00:26:12 +00:00
anders_k
9931591d3a Emulate g as &g16 in *() struct syntax
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6210 212acab6-be3b-0410-9dea-997c60f758d6
2011-12-13 21:20:56 +00:00
anders_k
c57acd99d2 Added SYSTEM_LOG "param out" output
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6209 212acab6-be3b-0410-9dea-997c60f758d6
2011-12-13 21:16:24 +00:00
anders_k
f853b15cc7 A working COUNTOF would be nice
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6131 212acab6-be3b-0410-9dea-997c60f758d6
2010-11-15 18:17:41 +00:00
anders_k
4c62b4760e VC6 fixes when using SYSTEM_LOG_DEBUG
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6130 212acab6-be3b-0410-9dea-997c60f758d6
2010-11-15 18:02:29 +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
57d296e159 Adding Unicode support to System plugin
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6050 212acab6-be3b-0410-9dea-997c60f758d6
2010-04-13 15:25:33 +00:00
anders_k
82d42b1159 _countof and swprintf fixes for VC6
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6045 212acab6-be3b-0410-9dea-997c60f758d6
2010-03-30 17:50:08 +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
cdf7735a77 Jim Park's Unicode NSIS merging - Step 2 : merge TCHARs changes into trunk
Compiler output is identical before & after this step

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6037 212acab6-be3b-0410-9dea-997c60f758d6
2010-03-26 17:18: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
anders_k
32fda4e830 System Plugin: Fixed callback proc numbers and memleak in Free()
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6016 212acab6-be3b-0410-9dea-997c60f758d6
2009-12-21 21:25:45 +00:00
anders_k
eebc175b92 System Plugin: Support for p as pointer/handle type
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6014 212acab6-be3b-0410-9dea-997c60f758d6
2009-12-21 15:04:22 +00:00
kichik
e59407720a use new plug-in library wherever possible, which is not a lot...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5840 212acab6-be3b-0410-9dea-997c60f758d6
2008-12-12 18:24:00 +00:00
kichik
4c87ec9e83 applied patch #2193442 - port System::Call and related functions to GCC
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5775 212acab6-be3b-0410-9dea-997c60f758d6
2008-11-20 21:04:23 +00:00
kichik
c69e0d5784 applied patch #2025721 - Patch for Feature Request 1961307
also closes RFE #1961307

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5701 212acab6-be3b-0410-9dea-997c60f758d6
2008-08-15 18:13:21 +00:00
pabs3
55d89deb99 applied patch #1711089 - disable System::Call and System::Get when building with GCC
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5149 212acab6-be3b-0410-9dea-997c60f758d6
2007-05-14 23:50:45 +00:00
kichik
2cda34fbec fixed bug #1616267 - System plugin crash with parenthesis in filename
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4844 212acab6-be3b-0410-9dea-997c60f758d6
2006-12-15 11:52:11 +00:00
kichik
729b7cd451 fixed bug #1535005 - System.dll corrupts the stack with 0 arguments functions
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4722 212acab6-be3b-0410-9dea-997c60f758d6
2006-08-06 16:22:40 +00:00
kichik
3131a7d728 fixed bug #1535007 - System.dll returns bad values, if function returns short
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4721 212acab6-be3b-0410-9dea-997c60f758d6
2006-08-05 11:01:35 +00:00
kichik
779b1ce1c1 fixed bug #1403601 - System plug-in heap corruption
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4473 212acab6-be3b-0410-9dea-997c60f758d6
2006-01-13 14:31:28 +00:00
kichik
4647e56e67 fixed build warnings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4251 212acab6-be3b-0410-9dea-997c60f758d6
2005-09-09 09:18:45 +00:00
kichik
b42f4595b1 added missing include
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3924 212acab6-be3b-0410-9dea-997c60f758d6
2005-03-18 15:56:27 +00:00
kichik
f43be4183a - fixes by brainsucker:
* Bug with proc call parts redefinition, # for example
* Bug with memory protection during callback processing (XP SP2)
- updated documentation:
* all examples now work, thanks to brainsucker's fixes
* visual improvements
* pointer information


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3590 212acab6-be3b-0410-9dea-997c60f758d6
2004-07-23 17:23:34 +00:00
kichik
879a8245bc (brainsucker) bug-fix-release, 4.06.2004
1. System::Copy /SIZE fixed (Kichik).
2. System::Copy with destination auto-allocation now pushes destination
address on stack.
3. Callbacks fixed (Kichik's kick is awesome).


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3555 212acab6-be3b-0410-9dea-997c60f758d6
2004-06-04 15:32:05 +00:00
kichik
9186fcc291 release 5 by brainsucker:
1. u flag - unload dll after procedure call.
2. some changes to asm to turn on Whole Program Optimization.
3. Dll shrinked for 1 kb.


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2899 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-11 20:31:04 +00:00
kichik
74ea2dc585 * PageEx - every page can be used everywhere and as many times as needed
* DirVar - easy way to add another dir page
* default strings in the language file (Page directory is enough, no need for DirText)
* strings from the language file are now LangStrings that can be used in the script
* no more /LANG - one string for all languages
* any lang strings can be used everywhere, installer or uninstaller (no un.)
* no more unprocessed strings - variables can be used almost everywhere (except in licenseData and InstallDirRegKey)
* DirText parm for browse dialog text
* SetBkColor -> SetCtlColors - can now set text color too
* fixed SetOutPath and File /r bug
* fixed File /a /oname bug
* added $_CLICK for pages
* added quotes support in lang files (patch #752620)
* extraction progress
* separate RTL dialogs for RTL langs (improved RTL too)
* InstallOptions RTL
* StartMenu RTL
* fixed RegDLL?
* added IfSilent and SetSilent (SetSilent only works from .onInit)
* fixed verify window (it never showed) (bug #792494)
* fixed ifnewer readonly file problem (patch #783782)
* fixed wininit.ini manipulation when there is another section after [rename]
* fixed some ClearType issues
* fixed a minor bug in the resource editor
* fixed !ifdef/!endif stuff, rewritten
* lots of code and comments clean ups
* got rid of some useless exceptions handling and STL classes (still much more to go)
* lots of optimizations, of course ;)
* updated system.dll with support for GUID, WCHAR, and fast VTable calling (i.e. COM ready)
* minor bug fixes


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2823 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-04 18:25:57 +00:00
ramon18
cf0a0762a5 Small bug with structures fixed (thanks brainsucker)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2689 212acab6-be3b-0410-9dea-997c60f758d6
2003-07-03 21:53:38 +00:00
kichik
96a524c1b7 (brainsucker) fixed a bug with calling proc(void) and added e switch to get GetLastError return value.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2465 212acab6-be3b-0410-9dea-997c60f758d6
2003-04-18 11:21:06 +00:00
kichik
8cc035ffe3 Source code for latest fixes (brainsucker)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2378 212acab6-be3b-0410-9dea-997c60f758d6
2003-03-27 12:52:43 +00:00
joostverburg
3667a05636 Updated System plugin - Win9x fixes and more
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2350 212acab6-be3b-0410-9dea-997c60f758d6
2003-03-22 11:15:53 +00:00
kichik
66ae44c5ac Source files to Source directory
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1513 212acab6-be3b-0410-9dea-997c60f758d6
2002-10-31 15:55:52 +00:00
Renamed from Contrib/System/System.c (Browse further)