diff --git a/Source/script.cpp b/Source/script.cpp index b962167e..cc7fa642 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -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()