6 more bytes down
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1183 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
b0c4fb1ac4
commit
d762e60cd8
3 changed files with 32 additions and 83 deletions
|
@ -237,7 +237,38 @@ static int NSISCALL ExecuteEntry(entry *entry_)
|
|||
mystrcpy(state_output_directory,buf1);
|
||||
}
|
||||
else update_status_text_from_lang(LANGID_CREATEDIR,buf1);
|
||||
recursive_create_directory(buf1);
|
||||
{
|
||||
char *tp;
|
||||
char *p;
|
||||
p=buf1;
|
||||
while (*p == ' ') p=CharNext(p);
|
||||
if (*p) {
|
||||
tp=CharNext(p);
|
||||
if (*(WORD*)tp == CHAR2_TO_WORD(':','\\')) p=tp+2;
|
||||
else if (*(WORD*)p == CHAR2_TO_WORD('\\','\\'))
|
||||
{
|
||||
int x;
|
||||
for (x = 0; x < 2; x ++)
|
||||
{
|
||||
while (*p != '\\' && *p) p=CharNext(p); // skip host then share
|
||||
if (*p) p=CharNext(p);
|
||||
}
|
||||
|
||||
}
|
||||
else return 0;
|
||||
while (*p)
|
||||
{
|
||||
while (*p != '\\' && *p) p=CharNext(p);
|
||||
if (!*p) CreateDirectory(buf1,NULL);
|
||||
else
|
||||
{
|
||||
*p=0;
|
||||
CreateDirectory(buf1,NULL);
|
||||
*p++ = '\\';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
case EW_IFFILEEXISTS: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue