ipm icon indicating copy to clipboard operation
ipm copied to clipboard

Add a flag to disallow reinstallation of the same version

Open isc-tleavitt opened this issue 3 months ago • 1 comments

The default behavior will be backward-compatible, still permitting reinstallation.

In module.xml, an application that wants to suppress reinstallation of an already-installed version could have:

      <Defaults>
        <Parameter Name="PermitReinstall">0</Parameter>
      </Defaults>

At the command level, a user trying to install such an application when they really know better can say:

zpm "install isc-supply-chain -DPermitReinstall=1"

If PermitReinstall=0 and you run the install command, rather than erroring out, there should just be a message saying " is already installed."

isc-tleavitt avatar Sep 16 '25 15:09 isc-tleavitt

Current line of thinking is to make the backwards-incompatible change of preventing install or load of the same version of a given module, unless the -force flag is supplied. Adding the PermitReinstall parameter would override this behavior for the module (and allow same version reinstalls).

isc-dchui avatar Oct 30 '25 20:10 isc-dchui