Commit graph

183 commits

Author SHA1 Message Date
kichik
68907347f5 don't pass ".dll" to myGetProcAddress as GetModuleHandle and LoadLibrary add that automatically
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5076 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-14 16:05:43 +00:00
kichik
37c4571620 RegDeleteKeyExA typedef missing return value
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5074 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-14 14:12:37 +00:00
kichik
a3e46a1b13 don't try deleting from the 32-bit view when RegDeleteKeyExA isn't found but g_exec_flags.alter_reg_view is set
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5071 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-14 12:55:00 +00:00
kichik
357c44ac38 added SetRegView to allows access to the x64 registry view
this method was chosen over a new switch for all regsitry commands to allow easy transition of existing scripts


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5070 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-14 12:50:32 +00:00
kichik
053b859a6f fixed bug #774966 - CopyFiles return value not working on NT4 Sp6
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5063 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-12 20:24:13 +00:00
pabs3
e873b82b53 Kill some more compiler warnings under Linux and mingw32
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5031 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-02 10:29:35 +00:00
pabs3
ed044c3046 FTBFS due to using the wrong log_printf function
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4981 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-07 09:26:19 +00:00
kichik
faac838b4e report error in log for WriteReg* when RegSetValueEx itself fails and not only RegCreateKeyEx
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4980 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-06 21:22:37 +00:00
kichik
b00c69290f size optimization - no need for both GetEnvironmentVariable and ExpandEnvironmentStrings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4970 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-03 14:18:20 +00:00
kichik
28dfd60e1d skip_root returns NULL, if buf1 is NULL, so there's no need to check again
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4925 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-10 14:23:10 +00:00
kichik
5201b056ba fixed bug #1638191 - have RegDLL use LoadLibraryEx with LOAD_WITH_ALTERED_SEARCH_PATH
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4865 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-23 18:16:57 +00:00
kichik
c145d69e55 2006 -> 2007
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4847 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-13 17:28:23 +00:00
kichik
a92506d828 fixed bug #1542530 - WriteUninstaller fails to overwrite read-only uninstallers
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4822 212acab6-be3b-0410-9dea-997c60f758d6
2006-11-25 11:32:19 +00:00
joostverburg
e497d771b1 * The LZMA compression module for NSIS is now licensed under the Common Public License version 1.0
* Added license and copyright notice to every source file
* The new COPYING file and license section in the Users Manual list the terms of all relevant licenses


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4787 212acab6-be3b-0410-9dea-997c60f758d6
2006-10-28 19:45:02 +00:00
kichik
f1a6014174 size optimization
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4633 212acab6-be3b-0410-9dea-997c60f758d6
2006-04-05 18:44:28 +00:00
kichik
015723663b export validate_filename for plug-ins
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4556 212acab6-be3b-0410-9dea-997c60f758d6
2006-03-07 14:14:25 +00:00
kichik
94f7f3b673 added NSIS_CONFIG_LOG_STDOUT
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4510 212acab6-be3b-0410-9dea-997c60f758d6
2006-01-27 17:53:00 +00:00
kichik
58b07e69c6 applied patch #1381929 - StrCmpS - case-sensitive string comparison
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4468 212acab6-be3b-0410-9dea-997c60f758d6
2006-01-06 16:00:15 +00:00
kichik
8eb5de9e74 added 0x prefix to dword reg values
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4423 212acab6-be3b-0410-9dea-997c60f758d6
2005-11-24 21:17:47 +00:00
kichik
def20ae25b ifdef to get rid of binbuf unused variable warning
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4416 212acab6-be3b-0410-9dea-997c60f758d6
2005-11-24 16:50:10 +00:00
kichik
d0f1bae314 applied patch #1340255 - nicer registry commands log
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4415 212acab6-be3b-0410-9dea-997c60f758d6
2005-11-24 16:45:04 +00:00
kichik
d6367e4125 my_GlobalAlloc no longer reduces the size
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4255 212acab6-be3b-0410-9dea-997c60f758d6
2005-09-09 16:08:44 +00:00
kichik
8e3f7ed623 size optimization
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4254 212acab6-be3b-0410-9dea-997c60f758d6
2005-09-09 15:21:45 +00:00
kichik
f5105a50b1 size optimization: added __stdcall wrapper for lstrcat
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4210 212acab6-be3b-0410-9dea-997c60f758d6
2005-08-06 12:47:46 +00:00
kichik
3eb2576adb MSDN says RegQueryValueEx might not always return null terminated strings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4115 212acab6-be3b-0410-9dea-997c60f758d6
2005-06-21 20:52:10 +00:00
kichik
47090922dc fixed bug #1119442 - CreateDirectory sets error flag with paths containing "\\"
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3956 212acab6-be3b-0410-9dea-997c60f758d6
2005-04-08 15:29:52 +00:00
kichik
106939c165 made ExpandEnvStrings set the error flag as the documentation says it should
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3953 212acab6-be3b-0410-9dea-997c60f758d6
2005-04-08 14:27:55 +00:00
kichik
7c0a2a1851 fixed bug #1178756 - EnumRegValue now sets the error flag if the enumeration index is out of range
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3951 212acab6-be3b-0410-9dea-997c60f758d6
2005-04-08 14:04:05 +00:00
kichik
38b94f19a5 implemented feature request #1159701 - "RTLREADING" flag support in the "MessageBox"
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3922 212acab6-be3b-0410-9dea-997c60f758d6
2005-03-17 20:44:31 +00:00
kichik
d192713026 implemented feature request #1124901 - Registry functions and ShellVarContext
all registry instructions now accept SHCTX which is replaced with HKLM or HKCU on runtime according to SetShellVarContext


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3907 212acab6-be3b-0410-9dea-997c60f758d6
2005-02-17 21:20:05 +00:00
kichik
282cd1ef72 if the first section was a section group, following section groups didn't behave correctly
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3900 212acab6-be3b-0410-9dea-997c60f758d6
2005-02-04 20:45:02 +00:00
kichik
502850c203 added missing break
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3890 212acab6-be3b-0410-9dea-997c60f758d6
2005-02-03 20:26:40 +00:00
kichik
f558c99c2c use new section name space
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3868 212acab6-be3b-0410-9dea-997c60f758d6
2005-01-14 15:13:47 +00:00
kichik
d8225671ad use new components functions so SetCurInstType will take affect immediately and so setting a section group's flags will affect its children too
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3856 212acab6-be3b-0410-9dea-997c60f758d6
2005-01-11 16:33:12 +00:00
kichik
2b0c2f2787 Only use the GetModuleHandle trick for plug-ins, otherwise just load and unload. If RegDLL uses /NOUNLOAD, unloading will be skipped, but GetModuleHandle won't be used.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3763 212acab6-be3b-0410-9dea-997c60f758d6
2004-11-11 21:28:25 +00:00
kichik
424322a142 Always increase the load count of registered dlls if /NOUNLOAD is not specified. This should fix some problems with registering many COM dlls in a row.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3762 212acab6-be3b-0410-9dea-997c60f758d6
2004-11-11 20:34:50 +00:00
kichik
89d3581649 Added another parameter to plug-in functions. This parameter is a structure with pointers to exec_flags and ExecuteCodeSegment. This is backward compatible with older plug-ins because plug-in functions use the __cdecl calling convention which means NSIS clears the stack.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3751 212acab6-be3b-0410-9dea-997c60f758d6
2004-10-23 17:43:08 +00:00
kichik
b7f9b6525b added a comment
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3732 212acab6-be3b-0410-9dea-997c60f758d6
2004-10-14 21:34:17 +00:00
kichik
335fd47066 made the Reboot command first quit and then reboot
- fixed bug #989690
 - the installer now denies reboots while running
 - the Reboot instruction no longer returns or sets the error flag
 - added .onRebootFailed which is called when Reboot fails
 - installer should now always clean-up when rebooting


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3729 212acab6-be3b-0410-9dea-997c60f758d6
2004-10-14 13:56:02 +00:00
kichik
efce592be4 use RegCreateKeyEx instead of RegCreateKey to hopefully solve the 64-bit Windows 2003 Server problem with WriteRegStr
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3661 212acab6-be3b-0410-9dea-997c60f758d6
2004-09-24 12:58:43 +00:00
joostverburg
a1f64d2d4c compiles with NSIS_SUPPORT_CODECALLBACKS disabled
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3600 212acab6-be3b-0410-9dea-997c60f758d6
2004-08-06 21:47:14 +00:00
kichik
010dc75a71 converted RMDir back from SHFileOperation to the good old manual method
- RMDir can now be used with both /r and /REBOOTOK
- RMDir /r no longer leaves lots of files behind if one file removal failed
- The plug-ins directory is now always deleted, if not immediately, then after reboot
- RMDir /r prints a detailed log of its actions


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3597 212acab6-be3b-0410-9dea-997c60f758d6
2004-08-06 17:03:07 +00:00
kichik
3181bf4b4d size optimization - lzma exehead is now 33.5kb
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3593 212acab6-be3b-0410-9dea-997c60f758d6
2004-08-06 11:05:48 +00:00
kichik
0735b7400e fixed internet shortcuts creation with CreateShortcut (thanks rex123)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3588 212acab6-be3b-0410-9dea-997c60f758d6
2004-07-15 17:37:11 +00:00
kichik
bf4d3c6c94 DeleteRegKey fix
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3587 212acab6-be3b-0410-9dea-997c60f758d6
2004-07-08 21:06:18 +00:00
kichik
5d8517c328 - extended maximum binary data for WriteRegBin to 3 * NSIS_MAX_STRLEN
- fixed FileRead setting the error flag when a null character is the first character it reads
- made File /nonfatal always produce a warning if the file can't be found
- some size optimizations


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3577 212acab6-be3b-0410-9dea-997c60f758d6
2004-06-25 19:53:05 +00:00
kichik
d1f241e6c8 patch #977897 by Anders - IntOp shr & shl
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3576 212acab6-be3b-0410-9dea-997c60f758d6
2004-06-25 15:24:20 +00:00
kichik
499fa0e764 fixed a bug which prevented enabling the next button from the leave function of InstallOptions pages
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3544 212acab6-be3b-0410-9dea-997c60f758d6
2004-05-08 16:07:22 +00:00
kichik
c579a1e4b0 back to 34kb for good old zlib exehead
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3526 212acab6-be3b-0410-9dea-997c60f758d6
2004-04-16 22:36:03 +00:00
kichik
4c5f8a30eb - makensis should now compile on any POSIX compliment platform (Linux, *BSD, Mac OS X, etc.)
- improved makefiles so nothing is compiled when it's already up-to-date
- Added SW_HIDE to ExecShell's accepted show modes


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3518 212acab6-be3b-0410-9dea-997c60f758d6
2004-03-29 20:21:00 +00:00