Allow adding or removing individual environment variables.
authorIain Patterson <me@iain.cx>
Thu, 21 Jul 2016 16:23:21 +0000 (17:23 +0100)
committerIain Patterson <me@iain.cx>
Thu, 28 Jul 2016 15:44:24 +0000 (16:44 +0100)
commit3e92dce8716991c7100ea55f0b5e202a05c1b56d
treec113c0e6e8bd4efa9615d478a21823f7748ea744
parent6ab2ed787e886fd87ba81e7ec510588da3c0e216
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 <servicename> AppEnvironment :FIRST=one
    nssm set <servicename> AppEnvironment +SECOND=two
    nssm set <servicename> AppEnvironment +THIRD=two
README.txt
settings.cpp