- added GetErrorLevel and SetErrorLevl
- fixed some inconsistencies in the error levels the installer/uninstaller set git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3668 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
f4089b9d60
commit
e82748702c
8 changed files with 45 additions and 14 deletions
|
@ -302,7 +302,7 @@ FORCE_INLINE int NSISCALL ui_doinstall(void)
|
|||
|
||||
#ifdef NSIS_SUPPORT_CODECALLBACKS
|
||||
// Select language
|
||||
if (ExecuteCallbackFunction(CB_ONINIT)) return 1;
|
||||
if (ExecuteCallbackFunction(CB_ONINIT)) return 2;
|
||||
set_language();
|
||||
#endif
|
||||
|
||||
|
@ -363,7 +363,7 @@ FORCE_INLINE int NSISCALL ui_doinstall(void)
|
|||
#ifdef NSIS_SUPPORT_CODECALLBACKS
|
||||
if (!g_quit_flag) ExecuteCallbackFunction(CB_ONINSTFAILED);
|
||||
#endif//NSIS_SUPPORT_CODECALLBACKS
|
||||
return 1;
|
||||
return 2;
|
||||
}
|
||||
#ifdef NSIS_SUPPORT_CODECALLBACKS
|
||||
ExecuteCallbackFunction(CB_ONINSTSUCCESS);
|
||||
|
@ -1596,7 +1596,7 @@ static BOOL CALLBACK InstProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
|
|||
{
|
||||
if (g_quit_flag)
|
||||
{
|
||||
m_retcode=1;
|
||||
m_retcode=2;
|
||||
outernotify(NOTIFY_BYE_BYE);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue