chocolateybeforemodify.ps1 599 B

123456789
  1. # This runs in 0.9.10+ before upgrade and uninstall.
  2. # Use this file to do things like stop services prior to upgrade or uninstall.
  3. # NOTE: It is an anti-pattern to call chocolateyUninstall.ps1 from here. If you
  4. # need to uninstall an MSI prior to upgrade, put the functionality in this
  5. # file without calling the uninstall script. Make it idempotent in the
  6. # uninstall script so that it doesn't fail when it is already uninstalled.
  7. # NOTE: For upgrades - like the uninstall script, this script always runs from
  8. # the currently installed version, not from the new upgraded package version.