Logs suggest Chocolatey failed to install but it was OK
⚙️ 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
why are you even using Chocolatey ?
- Because I'm familiar with it.
- It has packages provided that I require.
- It's an option within winUtil.
- It works
Do I really need to justify it?
yes you really do winget is just so much easier
Which is only your opinion which may or may not be right which is not related to this issue.
ye i gusse it is my opinion but i really dont see any way that choco is better than winget
I honestly don't care. You believe what you want. Your opinion doesn't change the issue to which I've raised.
ok i agree but the issue isn't with winutil its with Chocolatey