You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

执行视频工具命令时意外安装Chocolatey包管理器的问题

Troubleshooting Unwanted Chocolatey Auto-Installation

Here are actionable steps to resolve the issue where Chocolatey keeps reinstalling despite prior uninstallation:

  • Remove residual Chocolatey files and registry entries

    • Delete the default Chocolatey directories:
      • C:\ProgramData\chocolatey
      • C:\Users\<YourUsername>\AppData\Local\Chocolatey
    • Open Registry Editor (regedit), navigate to and delete these keys if they exist:
      • HKEY_LOCAL_MACHINE\SOFTWARE\Chocolatey
      • HKEY_CURRENT_USER\SOFTWARE\Chocolatey
  • Inspect the command/script you're running

    • Many tools include Chocolatey installation as part of their setup workflow. Check if the command from the video contains a Chocolatey install snippet (e.g., the official PowerShell install command). If present, modify the script to exclude this installation step.
  • Validate environment variables and system path

    • Open Command Prompt and run these commands to check for lingering Chocolatey references:
      echo %ChocolateyInstall%
      echo %Path%
      
    • If any Chocolatey paths are found, remove them manually via System Properties > Advanced > Environment Variables.
  • Clear cached installer scripts

    • Delete files in your temporary folders:
      • %temp%
      • %localappdata%\Temp
    • This ensures you're not running a cached version of the script that triggers Chocolatey installation.
  • Use a clean shell session

    • Launch a new Command Prompt or PowerShell window as Administrator, then execute your target command again. This avoids any leftover session variables that might trigger reinstallation.

内容的提问来源于stack exchange,提问作者P.Bak

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.01 16:20:42