kichik
9d8874cd72
the more common case for SendMessage is ints, so get that first
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5190 212acab6-be3b-0410-9dea-997c60f758d6
2007-07-06 09:31:57 +00:00
kichik
035579824d
size optimization - use GetNSISString and GetStringFromParm instead of mystrcat
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5188 212acab6-be3b-0410-9dea-997c60f758d6
2007-07-05 17:43:22 +00:00
kichik
ba9dbe7dab
some more information on the EN_MSGFILTER hack
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5184 212acab6-be3b-0410-9dea-997c60f758d6
2007-06-27 18:54:52 +00:00
kichik
859235383b
fixed bug #1741061 - use SetErrorMode to disable error messages for the entire installer and not for specific points as it always knows best what messages to display
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5172 212acab6-be3b-0410-9dea-997c60f758d6
2007-06-26 18:08:24 +00:00
kichik
3f42fa8804
another focused invisible control problem when hitting the Show Details button that also hides that button
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5162 212acab6-be3b-0410-9dea-997c60f758d6
2007-06-08 17:15:19 +00:00
kichik
48e7afd214
fixed bug #1733692 - Hitting any key in the instfiles page freezes under W2K
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5161 212acab6-be3b-0410-9dea-997c60f758d6
2007-06-08 17:11:54 +00:00
kichik
8a8844bcb8
size optimization
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5127 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-26 20:26:04 +00:00
kichik
f2ae1f6598
remove temp uninstaller directory only once
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5121 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-24 19:14:43 +00:00
kichik
f4c9414545
added $EXEFILE
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5120 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-24 19:09:51 +00:00
kichik
f44be03eeb
size optimization
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5111 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-20 23:40:05 +00:00
kichik
fa5602f290
sections always end with EW_RET which will cause ExecuteCodeSegment to return before MulDiv is called with progress_bar_len=0 and even if it is 0, MulDiv will just return -1
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5110 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-20 20:50:33 +00:00
kichik
acbd53f905
size optimization
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5109 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-20 20:32:04 +00:00
kichik
72c2e4c211
validate $EXEPATH as well
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5107 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-19 21:47:12 +00:00
kichik
c3e4937efe
better uninstaller recursion test using the new state_exe_path
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5106 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-19 21:38:30 +00:00
kichik
0ef9426b45
added $EXEPATH
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5105 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-19 21:38:11 +00:00
kichik
3ab94d5029
size optimization - SetOutPath already sets the working directory so there's no need to pass $OUTDIR to myCreateProcess
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5104 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-19 21:20:17 +00:00
kichik
6440139e8e
use $PROGRAMFILES for the root of the default $COMMONFILES instead of hard-coding "C:\Program Files"
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5102 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-19 20:02:24 +00:00
kichik
04cb60bc69
don't start showing pages if quit was called in the show function
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5096 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-17 19:12:24 +00:00
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
427d583f68
added $PROGRAMFILES32, $PROGRAMFILES64, $COMMONFILES32 and $COMMONFILES64
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5072 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-14 13:54:47 +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
bcf3899e68
instead of forwarding the X button to the Next button when the Cancel button is disabled on the last page, simply disable the X button when the Cancel button is disabled (part of bug #1267491 )
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5067 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-13 19:59:30 +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
kichik
122d84ddf2
no more need for char* cast
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5042 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-09 19:44:16 +00:00
kichik
e369347bf6
use const char for myGetProcAddress
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5041 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-09 18:01:20 +00:00
kichik
53442f4f53
applied patch #1682748 - installer icon for message box
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5036 212acab6-be3b-0410-9dea-997c60f758d6
2007-04-03 11:19:36 +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
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