don't fail silently if more than one script is dropped

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4409 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-11-12 17:23:01 +00:00
parent c12070b73e
commit 7ddf2ce883
2 changed files with 3 additions and 0 deletions

View file

@ -216,6 +216,8 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) {
ResetObjects();
CompileNSISScript();
}
} else {
MessageBox(hwndDlg,MULTIDROPERROR,"Error",MB_OK|MB_ICONSTOP);
}
break;
}

View file

@ -43,6 +43,7 @@
#define NSISERROR "Unable to intialize MakeNSIS. Please verify that makensis.exe is in the same directory as makensisw.exe."
#define DLGERROR "Unable to intialize MakeNSISW."
#define SYMBOLSERROR "Symbol cannot contain whitespace characters"
#define MULTIDROPERROR "Dropping more than one script at a time is not supported"
#define NSISUPDATEPROMPT "Running NSIS Update will close MakeNSISW.\nContinue?"
#define REGSEC HKEY_LOCAL_MACHINE
#define REGKEY "Software\\NSIS"