Added AllowSkipFiles - thanks Ramon!
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2576 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
190bc67448
commit
c38b889fe8
11 changed files with 82 additions and 23 deletions
|
@ -148,7 +148,7 @@ static int NSISCALL ExecuteEntry(entry *entry_)
|
|||
// Saves 8 bytes
|
||||
// HWND mainHwnd = g_hwnd;
|
||||
// #define g_hwnd mainHwnd
|
||||
|
||||
|
||||
HWND hwSectionHack = g_SectionHack;
|
||||
|
||||
parms = entry_->offsets;
|
||||
|
@ -379,7 +379,8 @@ static int NSISCALL ExecuteEntry(entry *entry_)
|
|||
char *buf3=process_string_fromparm_tobuf(0x31);
|
||||
#define overwriteflag parm0
|
||||
|
||||
log_printf3("File: overwriteflag=%d, name=\"%s\"",overwriteflag,buf3);
|
||||
// Modified by ramon 23 May 2003
|
||||
log_printf4("File: overwriteflag=%d, allowskipfilesflag=%d, name=\"%s\"",overwriteflag,allowskipfilesflag,buf3);
|
||||
if (validpathspec(buf3))
|
||||
{
|
||||
mystrcpy(buf0,buf3);
|
||||
|
@ -416,10 +417,11 @@ static int NSISCALL ExecuteEntry(entry *entry_)
|
|||
mystrcpy(buf2,g_usrvars[0]);//save $0
|
||||
mystrcpy(g_usrvars[0],buf0);
|
||||
|
||||
process_string_fromtab(buf1,LANG_FILEERR);
|
||||
process_string_fromtab(buf1,parm5&MB_ABORTRETRYIGNORE?LANG_FILEERR:LANG_FILEERR_NOIGNORE);
|
||||
mystrcpy(g_usrvars[0],buf2); // restore $0
|
||||
|
||||
switch (my_MessageBox(buf1,MB_ABORTRETRYIGNORE|MB_ICONSTOP))
|
||||
// Modified by ramon 23 May 2003
|
||||
switch (my_MessageBox(buf1, parm5))
|
||||
{
|
||||
case IDRETRY:
|
||||
log_printf("File: error, user retry");
|
||||
|
@ -461,6 +463,8 @@ static int NSISCALL ExecuteEntry(entry *entry_)
|
|||
}
|
||||
|
||||
#undef overwriteflag
|
||||
// Added by ramon 23 May 2003
|
||||
#undef allowskipfilesflag
|
||||
}
|
||||
break;
|
||||
#endif//NSIS_SUPPORT_FILE
|
||||
|
@ -1535,7 +1539,7 @@ static int NSISCALL ExecuteEntry(entry *entry_)
|
|||
}
|
||||
}
|
||||
else g_flags.exec_error++;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case EW_INSTTYPESET:
|
||||
{
|
||||
|
|
|
@ -56,7 +56,7 @@ enum
|
|||
EW_GETTEMPFILENAME, // GetTempFileName: 1 [output]
|
||||
#endif
|
||||
#ifdef NSIS_SUPPORT_FILE
|
||||
EW_EXTRACTFILE, // File to extract: 5,[overwriteflag, output filename, compressed filedata, filedatetimelow, filedatetimehigh]
|
||||
EW_EXTRACTFILE, // File to extract: 6 [overwriteflag, output filename, compressed filedata, filedatetimelow, filedatetimehigh, allow ignore]
|
||||
// overwriteflag: 0x1 = no. 0x0=force, 0x2=try, 0x3=if date is newer
|
||||
#endif
|
||||
#ifdef NSIS_SUPPORT_DELETE
|
||||
|
@ -238,6 +238,7 @@ typedef struct
|
|||
|
||||
#ifdef NSIS_SUPPORT_FILE
|
||||
int fileerrtext;
|
||||
int fileerrtext_noignore;
|
||||
#endif
|
||||
|
||||
#if defined(NSIS_SUPPORT_DELETE) || defined(NSIS_SUPPORT_RMDIR) || defined(NSIS_SUPPORT_FILE)
|
||||
|
|
|
@ -91,6 +91,7 @@
|
|||
|
||||
// instruction strings
|
||||
#define LANG_FILEERR (COMMON_STR(fileerrtext))
|
||||
#define LANG_FILEERR_NOIGNORE (COMMON_STR(fileerrtext_noignore))
|
||||
#define LANG_DELETEFILE (COMMON_STR(del_file))
|
||||
#define LANG_DLLREGERROR (COMMON_STR(err_reg_dll))
|
||||
#define LANG_REMOVEDIR (COMMON_STR(remove_dir))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue