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:
kichik 2003-05-26 17:55:15 +00:00
parent 190bc67448
commit c38b889fe8
11 changed files with 82 additions and 23 deletions

View file

@ -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:
{