From: Iain Patterson Date: Thu, 21 Jul 2016 16:23:21 +0000 (+0100) Subject: Allow adding or removing individual environment variables. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;ds=sidebyside;h=3e92dce8716991c7100ea55f0b5e202a05c1b56d;hp=3e92dce8716991c7100ea55f0b5e202a05c1b56d;p=nssm.git Allow adding or removing individual environment variables. Specifying an environment string as +KEY=VALUE will append KEY=VALUE to the existing block, or create a new one if none was previously configured. If KEY is already present, +KEY=VALUE will override it in place. Specifying -KEY=VALUE will remove KEY=VALUE from the existing block. Specifying -KEY will remove KEY regardless of its value. Removing the last key will delete the whole block. Specifying :KEY=VALUE is equivalent to KEY=VALUE, ie it creates a new block with only KEY=VALUE present. Its main purpose is to make scripts easier to read. nssm set AppEnvironment :FIRST=one nssm set AppEnvironment +SECOND=two nssm set AppEnvironment +THIRD=two ---