Before modify script not called when install command is used to upgrade
Open
0 - Backlog
Enhancement
Priority - Low
Up For Grabs
- Dominant language
- C#
- Stars
- 11.5k
- Forks
- 960
- PR merge metrics
- No merged PRs in 30d
Description
### What You Are Seeing?
If I have a package already installed and then I call:
`choco install package --version `
The before modify script doesn't get run, even though that seems to me like it should be an upgrade scenario. The script does get run if I call:
`choco upgrade package --version `
### What is Expected?
IMHO, if the upgrade command can install a package that doesn't exist, then the install command should detect an upgrade scenario if you aren't installing side-by-side.
### How Did You Get This To Happen? (Steps to Reproduce)
Detailed above
Contributor guide
Assessment
This issue has not been assessed yet.