Added DirVerify (works in PageEx directory) and GetInstDirError. If `DirVerify leave' is used, the next button will not be disabled if the installation directory is not valid or there is not enough space and a flag will be set instead. You can read that flag using GetInstDirError in the leave function of the directory page. A value of 0 means no error, 1 means invalid installation directory and 2 means not enough space. This allows you to handle those errors on your own.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3196 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
80eac750fc
commit
b77f339455
6 changed files with 81 additions and 29 deletions
|
@ -360,6 +360,7 @@ enum
|
|||
#define PF_LICENSE_SELECTED 1 // must be 1
|
||||
#define PF_NO_NEXT_FOCUS 128
|
||||
#define PF_PAGE_EX 512
|
||||
#define PF_DIR_NO_BTN_DISABLE 1024
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
@ -448,6 +449,9 @@ DWORD NSISCALL SetSelfFilePointer(LONG lDistanceToMove);
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#define NSIS_INSTDIR_INVALID 1
|
||||
#define NSIS_INSTDIR_NOT_ENOUGH_SPACE 2
|
||||
|
||||
union exec_flags {
|
||||
struct {
|
||||
int autoclose;
|
||||
|
@ -462,6 +466,7 @@ union exec_flags {
|
|||
#ifdef NSIS_CONFIG_SILENT_SUPPORT
|
||||
int silent;
|
||||
#endif
|
||||
int instdir_error;
|
||||
};
|
||||
int flags[1];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue