Add "Never" button in auto-updater prompt dialog

Update wingup to v3.3 : make Auto-Updater's periodical check being able
to be abdisable via auto-update prompt dialog.
This commit is contained in:
Don Ho 2016-05-21 16:43:41 +02:00
parent 52392a0b81
commit e3c18f61ea
4 changed files with 10 additions and 4 deletions

Binary file not shown.

View File

@ -53,17 +53,23 @@
<!-- Optional.
This is the title to display on the message box title bar.
If extraCmd is set (parameter is present and the value is not empty), the 3rd button "Cancel" will be appear (beside "Yes" and "No" button).
If isModal value is "yes", then Asking Update dialog will be modal. If the value is set "no" or isModal attribute is absent, this dialog will be non modal.
If extraCmd is set (parameter is present and the value is not empty), the 3rd button "Never" will be appear (beside "Yes" and "No" button).
extraCmd is the Windows Message (a numeric value) to notify your application that Cancel button is clicked by user.
extraCmdButtonLabel is the 3rd buttons label. If its value is empty or this attribute is absent, then the default value "Never" will be used.
extraCmd will be sent (with its wParam and lParam) to the handle of application indicated in ClassName2Close.
extraCmd, ecWparam and ecLparam are optional.
-->
<MessageBoxTitle extraCmd="" ecWparam="" ecLparam="">Notepad++ update</MessageBoxTitle>
<!--MessageBoxTitle isModal="yes" extraCmd="36950" extraCmdButtonLabel="Maybe" ecWparam="0" ecLparam="0">Notepad++ update</MessageBoxTitle-->
<!--MessageBoxTitle isModal="no" extraCmd="" ecWparam="" ecLparam="">Notepad++ update</MessageBoxTitle-->
<!-- extraCmd="2119" : while user click "Never" button, 2119 (NPPM_DISABLEAUTOUPDATE) will be sent to Notepad++ via SendMessage() to disable Auto-Updater's periodical detection -->
<MessageBoxTitle isModal="no" extraCmd="2119">Notepad++ update</MessageBoxTitle>
<!-- optional. YES by default.
This parameter can hide all the network error message.
If "SilentMode" is set as "yes", then users won't be warned when there's no connection of internet or the url is not available.
-->
<SilentMode>yes</SilentMode>
<SilentMode>no</SilentMode>
</GUPInput>

Binary file not shown.

View File

@ -416,7 +416,7 @@ enum winVer{ WV_UNKNOWN, WV_WIN32S, WV_95, WV_98, WV_ME, WV_NT, WV_W2K, WV_XP, W
#define NPPM_SAVEFILE (NPPMSG + 94)
// VOID NPPM_SAVEFILE(0, const TCHAR *fileNameToSave)
#define NPPM_DISABLEAUTOUPDATE (NPPMSG + 95)
#define NPPM_DISABLEAUTOUPDATE (NPPMSG + 95) // 2119 in decimal
// VOID NPPM_DISABLEAUTOUPDATE(0, 0)
#define RUNCOMMAND_USER (WM_USER + 3000)