Closed m-ikiara closed 4 months ago
Can you go back and remove all emojis from your issue? They are not necessary and distract from the issue.
Can you please also amend the title of the issue to be what the problem is?
Can you also provide all the logs requested by the issue template, by amending the original comment and adding them in? Please don't add them as a separate comment.
Without this, we will be unable to look further at the issue.
Hello there, At least I got a response from a human! Sorry for all that earlier. I believe that the instructions stated that I could add a link to a Gist instead of dumping them all in the issue. I hope the amendments are to your liking. Once more, I'm very sorry for all of that and blessings!
The problems appear to be that the installation of neovim
was detected in the oh-my-posh
folder. This can happen if two installations / uninstallations etc. are taking place at the same time (one Chocolatey CLI and one Winget in this case). When Chocolatey CLI looks to take a snapshot of the changed files and registry keys, it will see all changed entries.
When you run the uninstall of neovim
the pertinent log lines are:
2024-02-19 13:16:49,652 10028 [DEBUG] - Preparing uninstall key '"C:\Users\bigboy69\AppData\Local\Programs\oh-my-posh\unins000.exe" /SILENT' for 'Oh My Posh version 19.8.2'
2024-02-19 13:16:49,707 10028 [DEBUG] - Uninstaller path is 'C:\Users\bigboy69\AppData\Local\Programs\oh-my-posh\unins000.exe'
2024-02-19 13:16:49,707 10028 [DEBUG] - Installer type is 'InnoSetupInstaller'
2024-02-19 13:16:49,707 10028 [DEBUG] - Setting up uninstall logging directory at C:\Users\bigboy69\AppData\Local\Temp\chocolatey\neovim\0.9.5
2024-02-19 13:16:49,717 10028 [DEBUG] - Attempting to create directory "C:\Users\bigboy69\AppData\Local\Temp\chocolatey\neovim".
2024-02-19 13:16:49,717 10028 [DEBUG] - Args are '/SILENT'
2024-02-19 13:16:49,722 10028 [DEBUG] - Calling command ['"C:\Users\bigboy69\AppData\Local\Programs\oh-my-posh\unins000.exe" /SILENT']
2024-02-19 13:16:50,867 10028 [DEBUG] - Command ['"C:\Users\bigboy69\AppData\Local\Programs\oh-my-posh\unins000.exe" /SILENT'] exited with '0'
It is actually running the oh-my-posh
uninstaller.
The uninstallation scripts run by choco should not fail.
If the package scripts are failing, that is a package issue and you should contact the maintainer.
choco is a different package manager from scoop, apt-cyg and winget.
Scoop is not a package manager. Winget is a manifest / software manager. apt-cyg I have no experience with. So Chocolatey CLI is different.
Thanks so much for helping out with this issue. This scared me. I'll contact the Maintainer and not run into the same problem later. Till next time...
Checklist
What Are You Seeing?
So while uninstalling Neovim installed via
choco
, I found that myJanDeDobbeleer.OhMyPosh
installed viawinget
got deleted. "Mysteriously".What is Expected?
choco
should not fail.choco
should uninstall Neovim without affecting my other installed packages.choco
is a different package manager fromscoop
,apt-cyg
andwinget
.How Did You Get This To Happen?
choco uninstall neovim
,.ps1
failed,oh-my-posh
got "mysteriously" deleted,winget
. Confirmedoh-my-posh
missing,choco
and confirmedneovim
was uninstalled,oh-my-posh
and confirmed no other package was "mysteriously" deleted.System Details
Installed Packages
Output Log
I've created a Gist containing the following files:
chocolatey.log
choco.summary.log
Additional Context
I found my
nvim
, installed viachoco
, had a VirusTotal score of 1/76 from 5th Feb. I can also confirm that it wasn't a false positive. I decided to uninstall it, and the above happened. What puzzles me is why Chocolatey would interfere with packages installed by a different package manager, WinGet. This is concerning! I hope this issue is resolved and will help develop this robust package manager! Cheerio!