Update !system, cleaned resource.h, DeleteRegKey works on default value
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2020 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
d0e182a00f
commit
270bb06fd3
6 changed files with 14 additions and 28 deletions
|
@ -1643,6 +1643,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
|||
{
|
||||
char *exec=line.gettoken_str(1);
|
||||
int comp=line.gettoken_enum(2,"<\0>\0<>\0=\0ignore\0");
|
||||
if (line.getnumtokens() == 2) comp = 4;
|
||||
if (comp == -1 && line.getnumtokens() == 3) comp=4;
|
||||
if (comp == -1) PRINTHELP()
|
||||
int success=0;
|
||||
|
@ -3310,12 +3311,13 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
|||
int a=1;
|
||||
if (which_token==TOK_DELETEREGKEY)
|
||||
{
|
||||
ent.offsets[3]=1;
|
||||
char *s=line.gettoken_str(a);
|
||||
if (s[0] == '/')
|
||||
{
|
||||
if (stricmp(s,"/ifempty")) PRINTHELP()
|
||||
a++;
|
||||
ent.offsets[3]=1;
|
||||
ent.offsets[3]=3;
|
||||
}
|
||||
if (line.gettoken_str(a+2)[0]) PRINTHELP()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue