You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified this is the correct repository for opening this issue.
I have verified no other issues exist related to my problem.
I have verified this is not an issue for a specific package.
I have verified this issue is not security related.
What You Are Seeing?
If you cancel an install during the running of the chocolateyinstall.ps1 (e.g. when asking for input via Read-Host) script then chocolatey will still show that package as installed.
What is Expected?
Package is not shown as installed.
How Did You Get This To Happen?
Create a new package
Replace contents of chocolateyinstall.ps1 with something asking for input (e.g. Read-Host "Enter something")
Set version
Build package
Install Package, and cancel out when you get to the read host.
At the stage of the prompt, the package is installed. Chocolatey has installed the package. It has to, to be able to run the script that has the prompt in it.
If you Ctrl-C out then, it doesn't install the software (or whatever the script is meant to do). But in order for the scripts to be there, the package has to be installed.
Pressing Ctrl-C can result in issues (as the issues I linked to below) so it's best avoided.
Checklist
What You Are Seeing?
If you cancel an install during the running of the chocolateyinstall.ps1 (e.g. when asking for input via Read-Host) script then chocolatey will still show that package as installed.
What is Expected?
Package is not shown as installed.
How Did You Get This To Happen?
choco list -l
will show package installed.System Details
Name Value
PSVersion 5.1.17763.3770
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.3770
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Installed Packages
Output Log
Additional Context
No response
The text was updated successfully, but these errors were encountered: