Added SetPluginUnload manual|alwaysoff

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1282 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-10-02 19:18:24 +00:00
parent 4ef667a353
commit 8653a3358d
4 changed files with 11 additions and 1 deletions

View file

@ -1747,6 +1747,13 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
if (build_overwrite==-1) PRINTHELP()
SCRIPT_MSG("SetOverwrite: %s\n",line.gettoken_str(1));
return PS_OK;
#ifdef NSIS_CONFIG_PLUGIN_SUPPORT
case TOK_SETPLUGINUNLOAD:
build_plugin_unload=line.gettoken_enum(1,"manual\0alwaysoff\0");
if (build_plugin_unload==-1) PRINTHELP()
SCRIPT_MSG("SetPluginUnload: %s\n",line.gettoken_str(1));
return PS_OK;
#endif //NSIS_CONFIG_PLUGIN_SUPPORT
case TOK_SETCOMPRESS:
build_compress=line.gettoken_enum(1,"off\0auto\0force\0");
if (build_compress==-1) PRINTHELP()
@ -3593,7 +3600,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
ent.offsets[0]=add_string(tempDLL);;
ent.offsets[1]=add_string(command);
ent.offsets[2]=0;
ent.offsets[3]=nounload;
ent.offsets[3]=nounload|build_plugin_unload;
ret=add_entry(&ent);
if (ret != PS_OK) return ret;