winutil icon indicating copy to clipboard operation
winutil copied to clipboard

Logs suggest Chocolatey failed to install but it was OK

Open chrisjlocke opened this issue 1 month ago • 7 comments

⚙️ Issue Checklist

  • [x] I have read the guidelines.
  • [ ] I checked for duplicate issues.
  • [ ] I searched for existing discussions.
  • [ ] I checked for an existing pull request that addresses this issue.

📜 What part of Winutil are you having issues with?

First install

📝 Provide a clear and concise description of the issue.

In Windows 11 Sandbox (so nothing installed), running the toolbox indicates chocolatey failed to install. However, the script continues and chocolatey has indeed installed and is successfully run to install Notepad++. Log script shows 'Chocolatey failed to install' and 'Failed to install notepadplusplus due to an error: This command cannot be run due to the error: The system cannot find the file specified' These errors would imply failure, but both chocolatey and notepad++ were successfully installed. This seems to 'tarnish' the winUtil with a bad smell and make it untrustworthy?

🔄 Steps to reproduce the issue.

Start Windows 11 Sandbox. Run toolbox from Powershell. Select Notepad++ Use chocolatey as installer Upon clicking 'install', return to powershell to view log

❌ Paste the full error output (if available).

=====Windows Toolbox=====
Queueing notepadplusplus for Chocolatey
Checking if Chocolatey is Installed...
Queueing notepadplusplus for Chocolatey
Checking if Chocolatey is Installed...
===========================================
---    Chocolatey is not installed      ---
===========================================
Seems Chocolatey is not installed, installing now.
===========================================
---    Chocolatey is not installed      ---
===========================================
Seems Chocolatey is not installed, installing now.
Forcing web requests to allow TLS v1.2 (Required for requests to Chocolatey.org)
Getting latest version of the Chocolatey package for download.
Not using proxy.
Getting Chocolatey from https://community.chocolatey.org/api/v2/package/chocolatey/2.5.1.
Downloading https://community.chocolatey.org/api/v2/package/chocolatey/2.5.1 to C:\Users\WDAGUtilityAccount\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip
Not using proxy.
Forcing web requests to allow TLS v1.2 (Required for requests to Chocolatey.org)
Getting latest version of the Chocolatey package for download.
Not using proxy.
Getting Chocolatey from https://community.chocolatey.org/api/v2/package/chocolatey/2.5.1.
Downloading https://community.chocolatey.org/api/v2/package/chocolatey/2.5.1 to C:\Users\WDAGUtilityAccount\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip
Not using proxy.
===========================================
--     **Chocolatey failed to install**     ---
===========================================
===========================================
--   Configuring Chocolatey packages   ---
===========================================
Starting installation of notepadplusplus with Chocolatey.
**Failed to install notepadplusplus due to an error**: This command cannot be run due to the error: The system cannot find the file specified.
===========================================
--      Installs have finished          ---
===========================================
Extracting C:\Users\WDAGUtilityAccount\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip to C:\Users\WDAGUtilityAccount\AppData\Local\Temp\chocolatey\chocoInstall
Installing Chocolatey on the local machine
WARNING: It's very likely you will need to close and reopen your shell
  before you can use choco.
PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding...
Ensuring Chocolatey commands are on the path
Ensuring chocolatey.nupkg is in the lib folder
===========================================
--   Configuring Chocolatey packages   ---
===========================================
Starting installation of notepadplusplus with Chocolatey.
**notepadplusplus installed successfully**.
===========================================
--      **Installs have finished**          ---
===========================================

🖼️ Additional context.

No response

chrisjlocke avatar Nov 26 '25 18:11 chrisjlocke

why are you even using Chocolatey ?

GabiNun avatar Nov 27 '25 13:11 GabiNun

  1. Because I'm familiar with it.
  2. It has packages provided that I require.
  3. It's an option within winUtil.
  4. It works

Do I really need to justify it?

chrisjlocke avatar Nov 27 '25 18:11 chrisjlocke

yes you really do winget is just so much easier

GabiNun avatar Nov 28 '25 04:11 GabiNun

Which is only your opinion which may or may not be right which is not related to this issue.

chrisjlocke avatar Nov 29 '25 08:11 chrisjlocke

ye i gusse it is my opinion but i really dont see any way that choco is better than winget

GabiNun avatar Nov 29 '25 16:11 GabiNun

I honestly don't care. You believe what you want. Your opinion doesn't change the issue to which I've raised.

chrisjlocke avatar Nov 29 '25 17:11 chrisjlocke

ok i agree but the issue isn't with winutil its with Chocolatey

GabiNun avatar Nov 30 '25 06:11 GabiNun