makensis.exe path is not in the 'bin' directory

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@966 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
uid27073 2002-09-09 19:59:57 +00:00
parent 867f2b6cfe
commit ee9ff95356
2 changed files with 3 additions and 2 deletions

View file

@ -555,6 +555,7 @@ BOOL CALLBACK DlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
GetModuleFileName(g_hInstance,g_makensis_path,sizeof(g_makensis_path));
while (*p) p++;
while (p >= g_makensis_path && *p != '\\') p--;
if ((p-g_makensis_path>4)&&(tolower(*(p-1))=='n')&&(tolower(*(p-2))=='i')&&(tolower(*(p-3))=='b')&&(*(p-4)=='\\')) p -= 4;
strcpy(++p,"makensis.exe");
}
SetDlgItemText(hwndDlg,IDC_COMPILER,g_makensis_path);