Commit graph

582 commits

Author SHA1 Message Date
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
6ea14b45da size optimization
it's official. even msdn now says SHGetMalloc returns the same allocator CoTaskMemFree uses and a little debugging backs this even on Windows 95


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4978 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-06 20:35:53 +00:00
kichik
08650c9384 size optimization - GlobalFree isn't called in any other case, no need here as well
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4977 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-04 19:53:58 +00:00
kichik
5493360c14 oops... comment line continuation
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4973 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-03 14:23:43 +00:00
kichik
781c8aa1b8 size optimization - use don't add "Locale" twice to data section
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4972 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-03 14:19:30 +00:00
kichik
05d910c289 size optimization - use GetNSISString to do complicated stirng processing
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4971 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-03 14:18:49 +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
6ff6d600a7 fixed uninstallers processing of /D=
realcmds might point exactly to cmdline, so zeroing cmdline-2 may not affect it
instead, zero cmdline-2, cmdline-1, cmdline and cmdline+1 (entire " /D=")


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4967 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-03 12:49:08 +00:00
kichik
0c4ba9481a fixed bug #1664428 - LicenseForceSelection validation check can be easily skipped
rollback 1.269 as lParam can be NULL, as in this case


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4946 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-20 21:34:32 +00:00
kichik
bcb59727b0 applied patch #1660626 - Delete "$TEMP\~nsu.tmp" directory on reboot
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4941 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-17 15:58:06 +00:00
kichik
36b75d38b8 fail CopyFile of uninstaller in case it already exists
this prevents a race condition where Au_.exe is deleted by the current uninstaller and created by another uninstaller before CopyFile is called


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4940 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-17 15:40:49 +00:00
kichik
fac39f2435 size optimization
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4930 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-17 09:56:21 +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
8b278be803 use a different temporary variable now that state_command_line is already in use
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4905 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 22:37:46 +00:00
kichik
0243b40a1d according to MSDN, passing NULL as hModule to GetModuleFileName will get the path for the executable of the process so there's no need for g_hInstance
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4904 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 22:24:26 +00:00
kichik
d01e124228 process command line before setting temporary directory to give the user a chance to use /S
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4903 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 22:08:18 +00:00
kichik
8ecaea19a5 set silent flag as early as possible, so most crc errors won't appear
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4902 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 21:29:03 +00:00
kichik
f47023d9df fixed bug #1174184 - end of InstallDir appended after browse with custom dir var
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4875 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-24 13:08:18 +00:00
kichik
0117e3138e try CSIDL before resorting to registry or API for paths
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4867 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-23 19:41:28 +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
b4a00a8ede size optimization - no need for GetDlgItem, WM_COMMAND comes with the lParam = HWND
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4853 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-19 18:30:56 +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
0e0bc68e58 size optimization
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4823 212acab6-be3b-0410-9dea-997c60f758d6
2006-11-25 11:37:59 +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
kichik
9f37ece536 size optimization
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4821 212acab6-be3b-0410-9dea-997c60f758d6
2006-11-25 10:51:00 +00:00
kichik
d13749922d size optimization
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4820 212acab6-be3b-0410-9dea-997c60f758d6
2006-11-25 10:28:32 +00:00
kichik
e06fba9e3b fixed bug #1115825 - install pg/Show details/rt clk popup not destroyed on finish
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4819 212acab6-be3b-0410-9dea-997c60f758d6
2006-11-25 10:17:26 +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
3e561714e4 fixed bug #1504758 - CRC32 implementation use potentially non-32bit types
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4697 212acab6-be3b-0410-9dea-997c60f758d6
2006-06-16 14:12:04 +00:00
kichik
70e426839a fixed bug #1504297 - .onVerifyInstDir changes browsing text
script executed in .onVerifyInstDir changes ps_tmpbuf which is returned by GetNSISStringTT and is used for the browsing text


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4694 212acab6-be3b-0410-9dea-997c60f758d6
2006-06-16 13:15:01 +00:00
kichik
a7d42ace7e fixed bug #1481664 - RMDir can't delete read-only folders
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4667 212acab6-be3b-0410-9dea-997c60f758d6
2006-05-19 07:49:16 +00:00
kichik
a4724a1d6b match log_text in util.c
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4649 212acab6-be3b-0410-9dea-997c60f758d6
2006-04-07 16:21:16 +00:00
kichik
580c98a100 implemented RFE #1460586 - Put time stamps in the install log
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4635 212acab6-be3b-0410-9dea-997c60f758d6
2006-04-05 18:45:03 +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
503f5c78c8 moved _NSIS_NO_INT64_SHR test to SCons/Config/ms so it'll only be called once and not for each stub and because it's a better location being a vc specific problem
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4595 212acab6-be3b-0410-9dea-997c60f758d6
2006-03-17 12:01:17 +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
615ad474cb size optimization
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4554 212acab6-be3b-0410-9dea-997c60f758d6
2006-03-07 14:11:18 +00:00
kichik
688b994b45 moved NSIS_STRING from config.h to fileform.h
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4541 212acab6-be3b-0410-9dea-997c60f758d6
2006-02-24 19:28:51 +00:00
kichik
32a717faf5 move NSIS_VARS_SECTION to sconf.h
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4536 212acab6-be3b-0410-9dea-997c60f758d6
2006-02-24 19:12:04 +00:00
kichik
7a5163ea59 write all defines to sconf.h which is included by config.h instead of passing them on the command line
write the freaquently changing NSIS_VERSION to a separate file named version.h so only files that really need it will include it


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4535 212acab6-be3b-0410-9dea-997c60f758d6
2006-02-24 19:10:42 +00:00
kichik
2af8b64f00 fixed bug #1400995 - MB_TOPMOST doesn't work as first sections' instruction
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4534 212acab6-be3b-0410-9dea-997c60f758d6
2006-02-24 18:15:35 +00:00
kichik
90301110cc fixed bug #1420657 - RMDIR doesn't delete file with double dots prefix
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4512 212acab6-be3b-0410-9dea-997c60f758d6
2006-01-31 18:27:28 +00:00
kichik
2c7ee57a18 check if log_dolog is set for NSIS_CONFIG_LOG_STDOUT as well
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4511 212acab6-be3b-0410-9dea-997c60f758d6
2006-01-27 18:06:46 +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
a889217375 richedit controls automatically set the hand cursor for links, no need to do it manually
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4507 212acab6-be3b-0410-9dea-997c60f758d6
2006-01-27 15:44:40 +00:00
kichik
75d0211ffd check g_tmp[0] not state_language[2]
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4500 212acab6-be3b-0410-9dea-997c60f758d6
2006-01-24 17:57:50 +00:00
kichik
b747052c7f fixed bug #1412159 - NSIS 2.13 doesn't work on Win 95/98/NT
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4498 212acab6-be3b-0410-9dea-997c60f758d6
2006-01-24 17:54:35 +00:00
kichik
80cca71694 g_tmp should be at least twice NSIS_MAX_STRLEN, no matter what NSIS_MAX_STRLEN is
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4497 212acab6-be3b-0410-9dea-997c60f758d6
2006-01-24 17:31:24 +00:00