Commit graph

156 commits

Author SHA1 Message Date
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
86ccf99b80 added auto completion to the directory page
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4236 212acab6-be3b-0410-9dea-997c60f758d6
2005-09-02 11:35: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
d41f11b8d1 get rid of extra spaces in is_valid_instpath so "C:\ " will not be valid
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4203 212acab6-be3b-0410-9dea-997c60f758d6
2005-07-30 12:33:20 +00:00
kichik
dbb7153d65 set error flag for invalid directories passed to myDelete (fixes bug #1227553)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4150 212acab6-be3b-0410-9dea-997c60f758d6
2005-06-30 20:47:27 +00:00
kichik
add9fa0bee SCons/Config/gnu now takes care of adding memcpy if it's needed
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4008 212acab6-be3b-0410-9dea-997c60f758d6
2005-05-05 20:25:46 +00:00
kichik
9fdd4fbfc0 fixed bug #1073792 - RMDir /REBOOTOK sets reboot flag when folder doesn't exist
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3958 212acab6-be3b-0410-9dea-997c60f758d6
2005-04-08 17:41:22 +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
a7e4a69bb4 fixed plug-ins directory initialization for extremely restricted guest users with no directory listing access to the temporary directory
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3909 212acab6-be3b-0410-9dea-997c60f758d6
2005-02-18 13:39:42 +00:00
kichik
8759dcc315 fixed gcc 3.4 compile errors
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3673 212acab6-be3b-0410-9dea-997c60f758d6
2004-09-25 18:05:16 +00:00
kichik
d7ca86c446 don't try to delete a directory after reboot if it's not even valid
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3659 212acab6-be3b-0410-9dea-997c60f758d6
2004-09-24 11:26:35 +00:00
kichik
d855dafe58 fixed build warnings (including bug report #1005303 )
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3628 212acab6-be3b-0410-9dea-997c60f758d6
2004-08-14 17:35:05 +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
9b061b5fc9 fixed compatibility with gcc 3.3 and improved makefiles
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3570 212acab6-be3b-0410-9dea-997c60f758d6
2004-06-19 12:42:41 +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
22e2a6271e is_valid_instpath: don't check the current directory, check the root directory
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3521 212acab6-be3b-0410-9dea-997c60f758d6
2004-04-09 12:47:33 +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
569b4fb8e1 check if smaller than 31 (=control char) as unsigned
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3481 212acab6-be3b-0410-9dea-997c60f758d6
2004-02-07 14:24:51 +00:00
kichik
4a8e19199a only free the PIDL in DirProc, don't parse it too so g_tmp gets overwritten with the entire path instaed of just the display name
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3472 212acab6-be3b-0410-9dea-997c60f758d6
2004-02-06 22:37:46 +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
976e1f7097 - fixed two bugs which caused MBCS chars to be treated wrongly in validate_filename and therefore trim too much when validating a path
- converted minus ones to INVALID_FILE_ATTRIBUTES


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3439 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-30 23:51:31 +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
fcd2c16685 - fixed limit on LangStrings and user variables number which was lower than designed. limit is now 16383 for both.
- made log window respond to the context menu key and not just right click
- set back the default style for the next after it's re-enabled
- set focus on main controls for every page (can still hit enter for next)
- added code to prevent weird usage of WM_COMMAND which can cause weird behavior such as disabled next button on the components page
- eccles fixed a bug which caused beeping when the space key is hit on the components tree


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3351 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-04 17:05:03 +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
c385a40332 Back to former exehead overheads (zlib, bzip2 - 34, lzma - 34.5)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3299 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-22 18:50:47 +00:00
ramon18
6542144aba Shell Folders code now use "current user" if cannot retrieve nothing for "all users"
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3298 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-22 14:34:05 +00:00
ramon18
660bbf5e2d Added ShConstants.h to makenssi project
Size optimization on ui.c
Some fixes in Shell Folders code


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3297 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-22 14:02:15 +00:00
ramon18
2589a5fc85 Code clean up, removed NSIS_SUPPORT_NAMED_USERVARS and NSIS_SUPPORT_LANG_IN_STRINGS
Added support for many new constants which get shell folders path without using the registry


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3296 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-22 00:28:30 +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
4eb2881b5b - Better RTL support:
* use RTL reading wherever possible (shows the dots, commas, etc. in the correct order)
  * Message boxes are now RTL too
  * Fixed RTL for links in InstallOptions
- Fixed tab order in StartMenu
- Made StartMenu use SHGetSpecialFolderLocation (soon to be in NSIS core too)


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3259 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-06 20:45:35 +00:00
kichik
acf798c33b - Made CRC checking from CD-ROM or a network drive faster
- Some more optimizations


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3225 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-28 17:57:59 +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
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
343f7c9408 Files are not valid installation folders
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3142 212acab6-be3b-0410-9dea-997c60f758d6
2003-11-14 21:08:51 +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
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
60c7829e3a Fixed overwrite failure on Windows 2000/XP/2003 when the existing file was hidden
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2889 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-09 14:25:16 +00:00
kichik
74ea2dc585 * PageEx - every page can be used everywhere and as many times as needed
* DirVar - easy way to add another dir page
* default strings in the language file (Page directory is enough, no need for DirText)
* strings from the language file are now LangStrings that can be used in the script
* no more /LANG - one string for all languages
* any lang strings can be used everywhere, installer or uninstaller (no un.)
* no more unprocessed strings - variables can be used almost everywhere (except in licenseData and InstallDirRegKey)
* DirText parm for browse dialog text
* SetBkColor -> SetCtlColors - can now set text color too
* fixed SetOutPath and File /r bug
* fixed File /a /oname bug
* added $_CLICK for pages
* added quotes support in lang files (patch #752620)
* extraction progress
* separate RTL dialogs for RTL langs (improved RTL too)
* InstallOptions RTL
* StartMenu RTL
* fixed RegDLL?
* added IfSilent and SetSilent (SetSilent only works from .onInit)
* fixed verify window (it never showed) (bug #792494)
* fixed ifnewer readonly file problem (patch #783782)
* fixed wininit.ini manipulation when there is another section after [rename]
* fixed some ClearType issues
* fixed a minor bug in the resource editor
* fixed !ifdef/!endif stuff, rewritten
* lots of code and comments clean ups
* got rid of some useless exceptions handling and STL classes (still much more to go)
* lots of optimizations, of course ;)
* updated system.dll with support for GUID, WCHAR, and fast VTable calling (i.e. COM ready)
* minor bug fixes


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2823 212acab6-be3b-0410-9dea-997c60f758d6
2003-09-04 18:25:57 +00:00
ramon18
a3c887d456 NSIS_SUPPORT_LANG_IN_STRINGS works without NSIS_SUPPORT_NAMED_USERVARS
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2764 212acab6-be3b-0410-9dea-997c60f758d6
2003-07-23 09:34:41 +00:00
kichik
caa31c9cd5 - Fixed all known problems with temporary files and directoroes
- Command line switches work again (/NCRC and /S)
- GetTempFileName now takes another argument as base directory (default is $TEMP)
- Message boxes work from .onGUIEnd
- Some more optimizations


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2739 212acab6-be3b-0410-9dea-997c60f758d6
2003-07-18 14:22:17 +00:00
kichik
e6dd2ada8a tabs to spaces
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2713 212acab6-be3b-0410-9dea-997c60f758d6
2003-07-12 15:19:49 +00:00
ramon18
323c9af320 Fixed QUIT problem inside custom pages, user-variables activated and command "Dim" changed to "Var", language strings inside other strings are replaced
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2704 212acab6-be3b-0410-9dea-997c60f758d6
2003-07-08 23:18:47 +00:00
ramon18
054db45f63 Special section of data for user vars, whitch allow compiler to assign the right size and no code needed in exehead for mem allocs. Warnings for unreferenced user vars. (758773) Error, if temp file not available, now directory is created if not exist.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2673 212acab6-be3b-0410-9dea-997c60f758d6
2003-06-23 22:40:11 +00:00
kichik
0b4f2a9809 No longer 8, there is a flag with a name now
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2657 212acab6-be3b-0410-9dea-997c60f758d6
2003-06-18 16:26:47 +00:00
ramon18
ab91077049 Dynamic allocation of needed user variables (exehead grew 512 bytes).
Independed user vars in uninstaller and installer


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2656 212acab6-be3b-0410-9dea-997c60f758d6
2003-06-17 23:59:13 +00:00