Call :label is valid in uninstall sections too
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4018 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
65a282745d
commit
196f57884c
1 changed files with 2 additions and 1 deletions
|
@ -3321,7 +3321,8 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
|
|||
case TOK_CALL:
|
||||
if (!line.gettoken_str(1)[0] || (line.gettoken_str(1)[0]==':' && !line.gettoken_str(1)[1] )) PRINTHELP()
|
||||
#ifdef NSIS_CONFIG_UNINSTALL_SUPPORT
|
||||
if (uninstall_mode && strnicmp(line.gettoken_str(1),"un.",3) && (GetUserVarIndex(line,1) < 0))
|
||||
if (uninstall_mode && strnicmp(line.gettoken_str(1),"un.",3)
|
||||
&& (GetUserVarIndex(line,1) < 0) && line.gettoken_str(1)[0]!=':')
|
||||
{
|
||||
ERROR_MSG("Call must be used with function names starting with \"un.\" in the uninstall section.\n");
|
||||
PRINTHELP()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue