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
This commit is contained in:
parent
d1c5ef3af7
commit
2589a5fc85
10 changed files with 227 additions and 338 deletions
|
@ -353,7 +353,7 @@ static int CALLBACK WINAPI BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lPara
|
|||
hwnd,
|
||||
BFFM_ENABLEOK,
|
||||
0,
|
||||
SHGetPathFromIDList((LPITEMIDLIST)lParam,(char*)lpData)
|
||||
my_PIDL2Path((char*)lpData, (LPITEMIDLIST)lParam, 0)
|
||||
#ifdef NSIS_SUPPORT_CODECALLBACKS
|
||||
&& !ExecuteCodeSegment(g_header->code_onVerifyInstDir,NULL)
|
||||
#endif
|
||||
|
@ -806,13 +806,8 @@ static BOOL CALLBACK DirProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
|
|||
idlist = SHBrowseForFolder(&bi);
|
||||
if (idlist)
|
||||
{
|
||||
IMalloc *m;
|
||||
SHGetMalloc(&m);
|
||||
if (m)
|
||||
{
|
||||
m->lpVtbl->Free(m,idlist);
|
||||
m->lpVtbl->Release(m);
|
||||
}
|
||||
// Get and free idlist
|
||||
my_PIDL2Path(name, idlist, 1);
|
||||
|
||||
if (g_header->install_directory_auto_append)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue