From f47023d9dfc5fd0b23cb55fee113f5e3bcdd3fac Mon Sep 17 00:00:00 2001 From: kichik Date: Wed, 24 Jan 2007 13:08:18 +0000 Subject: [PATCH] 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 --- Source/exehead/Ui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/exehead/Ui.c b/Source/exehead/Ui.c index 251b8f31..5dc2b254 100644 --- a/Source/exehead/Ui.c +++ b/Source/exehead/Ui.c @@ -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);