Add new (optional) makensis win32 abort event to avoid multiple instance issues
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6298 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
b8903496e3
commit
e43d5a3b9e
6 changed files with 96 additions and 39 deletions
|
@ -70,12 +70,17 @@
|
|||
#define TP_PG (TP_GLOBAL | TP_PAGEEX)
|
||||
#define TP_ALL (TP_CODE | TP_PG)
|
||||
|
||||
enum notify_e {
|
||||
MAKENSIS_NOTIFY_SCRIPT, // main nsi file(s)
|
||||
MAKENSIS_NOTIFY_WARNING,
|
||||
MAKENSIS_NOTIFY_ERROR,
|
||||
MAKENSIS_NOTIFY_OUTPUT // generated .exe file
|
||||
};
|
||||
namespace MakensisAPI {
|
||||
extern const TCHAR* SigintEventNameFmt;
|
||||
extern const TCHAR* SigintEventNameLegacy;
|
||||
|
||||
enum notify_e {
|
||||
NOTIFY_SCRIPT, // main nsi file(s)
|
||||
NOTIFY_WARNING,
|
||||
NOTIFY_ERROR,
|
||||
NOTIFY_OUTPUT // generated .exe file
|
||||
};
|
||||
}
|
||||
|
||||
#define PAGE_CUSTOM 0
|
||||
#define PAGE_LICENSE 1
|
||||
|
@ -137,7 +142,7 @@ class CEXEBuild {
|
|||
NStreamLineReader* curlinereader;
|
||||
|
||||
HWND notify_hwnd;
|
||||
void notify(notify_e code, const TCHAR *data) const;
|
||||
void notify(MakensisAPI::notify_e code, const TCHAR *data) const;
|
||||
|
||||
private:
|
||||
int check_write_output_errors() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue