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
This commit is contained in:
kichik 2007-01-24 13:08:18 +00:00
parent 6e6b20ea64
commit f47023d9df

View file

@ -955,7 +955,8 @@ static BOOL CALLBACK DirProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
addtrailingslash(dir);
if (g_header->install_directory_auto_append)
if (g_header->install_directory_auto_append &&
dir == state_install_directory) // only append to $INSTDIR (bug #1174184)
{
const char *post_str = ps_tmpbuf;
GetNSISStringTT(g_header->install_directory_auto_append);