Page and UninstPage should not be used inside sesctions/functions
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2241 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
77a1f038f8
commit
55d936db3c
1 changed files with 2 additions and 3 deletions
|
@ -692,7 +692,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
|||
build_header.common.num_pages++;
|
||||
}
|
||||
}
|
||||
return PS_OK;
|
||||
return make_sure_not_in_secorfunc(line.gettoken_str(0));
|
||||
case TOK_UNINSTPAGE:
|
||||
#ifdef NSIS_CONFIG_UNINSTALL_SUPPORT
|
||||
{
|
||||
|
@ -828,9 +828,8 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
|||
ubuild_pages.add(&p,sizeof(page));
|
||||
build_uninst.common.num_pages++;
|
||||
}
|
||||
SCRIPT_MSG("number of pages: %d\n", build_uninst.common.num_pages);
|
||||
}
|
||||
return PS_OK;
|
||||
return make_sure_not_in_secorfunc(line.gettoken_str(0));
|
||||
#else
|
||||
ERROR_MSG("Error: %s specified, NSIS_CONFIG_UNINSTALL_SUPPORT not defined.\n", line.gettoken_str(0));
|
||||
return PS_ERROR;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue