kichik
5107637e7e
fixed access violation in case m_vItems[i]->szClass is an int resource
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5014 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-31 09:21:51 +00:00
kichik
576446db5e
more of patch #1644712 - new compiler predefines
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4999 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-18 18:33:28 +00:00
pabs3
baa898b952
Missed a warning
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4995 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-11 16:49:02 +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
f6849b6bec
it's /o not /0
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4989 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-10 14:16:30 +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
pabs3
3d7194ee59
fixed bug #1661503 : inconsistency between Win32/Linux makensis command line options
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4961 212acab6-be3b-0410-9dea-997c60f758d6
2007-03-02 04:35:35 +00:00
kichik
695fddbc32
implemented RFE #1669513 - bitwise operators for !define /math
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4959 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-27 21:04:12 +00:00
kichik
7a9faeb2a5
fixed bug #1667637 - build, test failures in nsis CVS on Debian GNU/Linux
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4956 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-24 12:16:32 +00:00
kichik
cb30b6ed2f
fixed bug #1666873 - LZMA test segfault on Debian GNU/Linux
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4950 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-23 12:34:51 +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
a796f08c10
copyright notice
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4942 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-17 16:34:10 +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
b8cc7d57d6
use winchar_strdup
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4938 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-17 15:11:33 +00:00
kichik
f496cc464f
fixed bug #1662190 - dialog template unicode conversion is lossy
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4937 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-17 15:11:12 +00:00
kichik
0b19a3fa29
added winchar_strdup
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4936 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-17 15:06:53 +00:00
kichik
e194176ec3
align strings on 4 byte boundary and don't write NULL termination twice
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4931 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-17 10:49:50 +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
eb157fcacd
more typos
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4928 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-16 18:30:36 +00:00
kichik
a0ebce4256
typo (thanks kk)
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4926 212acab6-be3b-0410-9dea-997c60f758d6
2007-02-15 20:01:25 +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
783ad89ca8
winchar_toansi requires WCHAR* not WORD*
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4914 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-30 18:50:57 +00:00
kichik
41d2436490
applied patch #1638974 - option to set process priority of makensis
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4913 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-27 16:53:37 +00:00
kichik
e8f7406c59
!if${global} killed the block ignore code
...
!ifdef a
!if${something}
!endif # this will close the first !if, because ${something} is invalid
!endif
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4910 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-27 16:01:48 +00:00
kichik
910ed492ab
ignored invalid preprocessor commands in ignored blocks
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4909 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-27 15:54:28 +00:00
kichik
60c3a6165e
set __UNINSTALL__ in set_uninstall_mode, as in original patch #1644712
...
PageEx and PageExEnd set uninstall_mode in script.cpp, so setting this in set_code_type_predefines doesn't work
it's probably better to set it in set_uninstall_mode as other commands probably use it as well
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4908 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-27 15:39:23 +00:00
kichik
14f085bcbe
tests for patch #1644712 (new predefines)
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4907 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-27 15:32:47 +00:00
kichik
bff435f106
applied patch #1644712 - new compiler predefines
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4906 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-27 15:32:04 +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
471db94eb8
clean-up for posix tests compatibility
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4901 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 18:07:40 +00:00
kichik
41585aacb4
lzma needs pthread on posix
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4900 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 17:57:08 +00:00
kichik
cf297a3762
force c, as gcc thinks upper case .C extension is c++
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4899 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 17:56:05 +00:00
kichik
fd697f0b82
util.h isn't really needed and only causes problems when compiling the tests
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4898 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 17:50:31 +00:00
kichik
c342b6e194
gcc doesn't like deleting void*
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4897 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 17:49:10 +00:00
kichik
d10b1ccc5f
util.h isn't really needed and only causes problems when compiling the tests
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4896 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 17:44:06 +00:00
kichik
87d9c6d901
added winchar tests
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4894 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 14:08:41 +00:00
kichik
42fe2b8d43
fixed winchar_strcmp
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4893 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 14:07:29 +00:00
kichik
8abd506086
convert all StrToWstrAlloc
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4892 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 13:27:21 +00:00