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
kichik
f4a1f17299
- updated the makefiles and code to allow compliation with MinGW once again (some of patch #875485 by perditionc)
...
- fixed errors and warnings given by gcc
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3513 212acab6-be3b-0410-9dea-997c60f758d6
2004-03-12 20:43:54 +00:00
eccles
ca9582c925
Windows 95 (OSR2)/98/ME no longer see drive free space capped to 2GB.
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3507 212acab6-be3b-0410-9dea-997c60f758d6
2004-03-06 12:31:26 +00:00
kichik
b1a527c4ce
made the command line parser not ignore any switch just before it didn't have a switch before it
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3461 212acab6-be3b-0410-9dea-997c60f758d6
2004-02-04 20:03:30 +00:00
kichik
bd25e070c8
- compiles without PSDK again
...
- moved all defines that are missing without PSDK to Platform.h
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3436 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-30 22:04:10 +00:00
kichik
851032d22a
fixed some compile errors caused by removing some config.h options
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3429 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-29 01:23:24 +00:00
kichik
bb4413a2c6
fixed logging
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3424 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-27 18:44:31 +00:00
kichik
8a85e1c0dd
fixed branding text background color not updating when the system's color change
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3329 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-29 14:27:33 +00:00
kichik
6e2d07df31
only add entries to wininit.ini if short names were retrieved successfully
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3291 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-18 19:19:19 +00:00
kichik
b5a430dfa6
Some more optimizations
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3223 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-27 23:21:15 +00:00
kichik
f6ebb29045
- All message boxes in code now have a default for silent installers
...
- Some size optimizations
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3221 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-27 20:19:48 +00:00
kichik
ec5f289696
- More path validation (drive id is an english letter, no chars under 32 in a path)
...
- Fixed bug #839214 - message box shown in silent mode if a file can't be opened for writing. Now it will skip the file if AllowSkipFiles is on and abort if it's not.
- Added /SD parameter for MessageBox. Allows to set default for silent installers (MessageBox MB_OKCANCEL "OK? Cancel?" /SD IDOK IDOK doOK IDCANCEL doCancel)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3208 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-25 17:07:40 +00:00
kichik
b77f339455
Added DirVerify (works in PageEx directory) and GetInstDirError. If `DirVerify leave' is used, the next button will not be disabled if the installation directory is not valid or there is not enough space and a flag will be set instead. You can read that flag using GetInstDirError in the leave function of the directory page. A value of 0 means no error, 1 means invalid installation directory and 2 means not enough space. This allows you to handle those errors on your own.
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3196 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-24 17:05:10 +00:00
kichik
ac025c139c
Added NSIS_CONFIG_LOG_ODS that makes the log use OutputDebugString instead of install.log.
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3194 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-24 14:22:50 +00:00
kichik
c49208b861
Fixed bug #846723 - SetOutPath doesn't work with root directories
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3193 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-24 13:29:40 +00:00
kichik
0ef7fcd98b
Uninstaller data offset is saved as EW_WRITEUNINSTALLER's parameters. A step forward to multiple uninstallers and smaller exehead.
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3192 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-24 13:11:35 +00:00
ramon18
48a62f51e8
Added new function LockWindow for flickering problems workaround, fixed crash on NSISdl, fixed focus button redraw
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3115 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-09 22:45:25 +00:00
kichik
eae737d71a
validate shortcut target, if it turns up as a valid path spec (URLs should still work)
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2989 212acab6-be3b-0410-9dea-997c60f758d6
2003-10-02 12:03:05 +00:00
eccles
7d99fd6700
No more Windows error message when using IfFileExists on a removable drive with no media inserted - now applies to all internal file_exists calls.
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2976 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-28 12:14:10 +00:00
eccles
a72067fab9
No more Windows error message when using IfFileExists on a removable drive with no media inserted.
...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2975 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-28 11:33:22 +00:00
kichik
6d63dd3a58
- Fixed ComponentText without InstTypes
...
- Made it impossible to install to non-existing drives/removable drives with no media
- Fixed a crash caused by using a LangString in InstallDir
- No more Windows error message when a registered DLL dependency can't be found
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2957 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-23 19:01:19 +00:00
kichik
9d7de707ea
- Fixed uninstaller refusal to start when on the root directory (note that AllowRootDirInstall true is still required)
...
- Some touch ups regarding NSIS_CONFIG_VISIBLE_SUPPORT
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2896 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-10 16:39:06 +00:00
kichik
aa09b6bdb9
- Fixed SetOutPath not setting current directory if the directory didn't exist before
...
- Fixed a memory leak
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2895 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-10 13:44:24 +00:00