RMDir /REBOOTOK
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2390 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
5fbadb7e97
commit
68c97de740
4 changed files with 21 additions and 5 deletions
|
@ -3021,9 +3021,15 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
|||
a++;
|
||||
ent.offsets[1]=1;
|
||||
}
|
||||
else if (!stricmp(line.gettoken_str(1),"/REBOOTOK"))
|
||||
{
|
||||
if (line.getnumtokens() < 3) PRINTHELP()
|
||||
a++;
|
||||
ent.offsets[1]=2;
|
||||
}
|
||||
else if (line.gettoken_str(1)[0]=='/') PRINTHELP()
|
||||
ent.offsets[0]=add_string(line.gettoken_str(a));
|
||||
SCRIPT_MSG("RMDir: %s\"%s\"\n",ent.offsets[1]?"/r " : "",line.gettoken_str(a));
|
||||
SCRIPT_MSG("RMDir: %s%s\"%s\"\n",a==1?"":line.gettoken_str(1),ent.offsets[1]?" ":"",line.gettoken_str(a));
|
||||
}
|
||||
return add_entry(&ent);
|
||||
#else//!NSIS_SUPPORT_RMDIR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue