Commit graph

1343 commits

Author SHA1 Message Date
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
kichik
313cfdd331 fixed gcc conversion warning/error
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4891 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 13:22:27 +00:00
kichik
fb80d0f5f7 use same conversion for IS_INTRESOURCE and MAKEINTRESOURCE
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4890 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 13:15:49 +00:00
kichik
4fb4a1f688 StrToWstrAlloc -> winchar_fromansi
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4889 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 13:09:24 +00:00
kichik
01ebc199ef CreateUnicodeString -> winchar_fromansi
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4888 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 13:08:32 +00:00
kichik
249903acc8 use winchar
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4887 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 13:07:28 +00:00
kichik
478f9536e4 add support for codepage selection in winchar_*ansi
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4886 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 13:04:52 +00:00
kichik
ac156f5ebe GetResourceSize -> GetResourceSizeA/GetResourceSizeW
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4885 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 13:02:50 +00:00
kichik
822d2fd546 UpdateResource->UpdateResourceA
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4884 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 12:58:18 +00:00
kichik
5b01b17f11 wcs* use wchar_t on POSIX, which is not the same as WCHAR
so, winchar_* is introduced which uses WCHAR


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4883 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 12:57:44 +00:00
kichik
33800e2160 more of patch #1643633
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4882 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-25 11:22:51 +00:00
kichik
35ae3cca66 applied patch #1643633 - 64bit PE support for CResourceEditor
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4880 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-24 15:55:36 +00:00
kichik
c037ecfeed fixed bug #1083492 - resource editor unicode conversion is lossy
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4878 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-24 15:19:29 +00:00
kichik
92229d0a82 slight name changes to better fit the "standard"
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4877 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-24 13:25:44 +00:00
kichik
94fc6745fa fixed bug #1554178 - Compiler ignores next line after comment line ends with \
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4876 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-24 13:24:28 +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
3e66b3771a make sure the PE is 32-bit and not 64-bit (PE32+)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4873 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-24 11:37:18 +00:00
kichik
344f759bd5 add optional header magic definitions
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4872 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-24 11:36:29 +00:00
kichik
db0d67633b fixed bug #1626504 - VIAddVersionKey causes problems with localized installers
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4869 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-23 21:21:30 +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
ce18bd8cb8 compression tests
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4862 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-23 16:05:03 +00:00
kichik
9cb54c2272 return >0 only when really finished
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4861 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-23 16:03:10 +00:00
kichik
0d152aa1de no need for #ifdef anymore with the new build system
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4860 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-23 14:12:24 +00:00
kichik
03dd061d27 no need for #ifdef anymore with the new build system
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4859 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-23 13:57:22 +00:00
kichik
ec931af459 don't return 0 from CLZMA::Comrpess when finished, return 1
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4857 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-22 20:01:24 +00:00
kichik
8c1bfd4428 fixed bug #1631889 - NSIS compiler issues erroneous warning on uninstall sections
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4855 212acab6-be3b-0410-9dea-997c60f758d6
2007-01-19 19:33:49 +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
ae3373311e applied patch #1611866 - Fix MMapFile::release(void *pView, int size)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4843 212acab6-be3b-0410-9dea-997c60f758d6
2006-12-09 15:17:24 +00:00
kichik
4ca1f6d04b some CEXEBuild::doParse cleanup
- removed last_line_had_slash which was always set to zero
 - moved m_linebuild.resize(0) so it won't free the memory the next condition uses, though the line needs to be 64kb for that to happen
 - took care of a coupple of comments


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4842 212acab6-be3b-0410-9dea-997c60f758d6
2006-12-09 13:08:05 +00:00
kichik
62007bdd5b test block comments in !if blocks
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4841 212acab6-be3b-0410-9dea-997c60f758d6
2006-12-09 13:03:02 +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
kichik
4bdb1ebd7d Copy is deprecated by Clone in scons 0.96.93
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4813 212acab6-be3b-0410-9dea-997c60f758d6
2006-11-11 13:04:35 +00:00
kichik
79a3b31431 added highest option for RequestExecutionLevel
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4812 212acab6-be3b-0410-9dea-997c60f758d6
2006-11-10 14:54:23 +00:00