winutil icon indicating copy to clipboard operation
winutil copied to clipboard

winget failure when trying to install any application

Open QuietCoffee opened this issue 8 months ago • 9 comments

⚙️ Issue Checklist

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

📜 What part of Winutil are you having issues with?

Using winget to install applications

📝 Provide a clear and concise description of the issue.

When trying to install any application with 'winget' selected an error is always generated for 'Parse' Example provided is for Discord:

Queueing Discord.Discord for Winget install Latest Search Version: Current Installed Version: 1.21.10120.0

Error: Exception calling "Parse" with "1" argument(s): "Version string portion was too short or too long."

This happens on both a 'microwin' generated installation or a standard Windows 11 24H2 installation

Chocolatey works perfectly and can install any application in the provided list.

🔄 Steps to reproduce the issue.

  1. Fresh install Windows 11 24H2

  2. Run windows updates and reboot

  3. Open "terminal" with an elevated prompt

  4. Run the winutil with command#irm "https://christitus.com/win" | iex

  5. Attempt to install any application provided from the "Install" tab

  6. Error provided is generated for any application being attempted to install

❌ Paste the full error output (if available).

====Chris Titus Tech===== =====Windows Toolbox===== Queueing Discord.Discord for Winget install Latest Search Version: Current Installed Version: 1.21.10120.0

Error: Exception calling "Parse" with "1" argument(s): "Version string portion was too short or too long."

🖼️ Additional context.

Windows Version 24H2 (OS Build 26100.3775) Virtual Machine or Bare-metal installation 8GB RAM 4 CPU 80GB HDD

Issue occurs with using: local account sighing in with a Microsoft account after using microwin tool to create an iso using generic windows 11 ISO

QuietCoffee avatar Apr 10 '25 18:04 QuietCoffee

I heavily used this script and since a day or two I have the same error.

rocobruno avatar Apr 10 '25 20:04 rocobruno

I started getting this today too. I hope it's fixed soon

338lm avatar Apr 10 '25 20:04 338lm

Seeing the same thing

arigoldstein avatar Apr 10 '25 20:04 arigoldstein

I got the same error only when installing Modern Flyouts. I didn't have issues when installing other applications.

Rutger505 avatar Apr 10 '25 21:04 Rutger505

Seems like there could be an issue with the winget version installed on your system. (also it is a bit outdated)

Please try the following:

  1. Use "Winget Reinstall" on the config Tab of winutil and check if the Issue still persists
  2. Download and install the newest (stable) version of winutil manually Winget CLI (you need the .msixbundle) and see if the issue still persists

Marterich avatar Apr 11 '25 07:04 Marterich

Using "Winget reinstall" from the UI also errored out for me. As far as I could understand, the was also a problem with chocolatey. Manually installing Windows package manager, as suggested by the previous post resolved the issue, and winutil is able to install packages now.

d3niskh avatar Apr 11 '25 09:04 d3niskh

I had the same issue. Like @d3niskh said, I went to the MSStore to reinstall winget (Microsoft calls it App Installer). For me "App Installer" was already installed, but needed an update. After updating it once I did not get the error anymore, but got the warning that the winget version was not up to date and thus the programm could not be installed. After updating it a second time winget started installing without any warnings and errors.

maremike avatar Apr 11 '25 17:04 maremike

@ChrisTitusTech Seems like the Winget auto Install/Upgrade/Repair stil needs some work, even after your latest PRs that tried to remediate the issues...

Marterich avatar Apr 11 '25 17:04 Marterich

For what it's worth using winutil on microwin based off the latest win11 24h2 pro works fine. 23h2 (using nov 2024 update) does not, however using the Winget Reinstall config function works to fix the issue.

teejo75 avatar Apr 16 '25 10:04 teejo75

/close

Marterich avatar May 21 '25 19:05 Marterich

I still get this issue on different systems. Just reinstalled my laptop today for my brother to use.

The reinstall doesn't work, both with Winget and Chocolatey.

But the 2nd suggestion from @Marterich seems to work on the laptop. I usually tell friends and family to use this tool, but since the application installation keeps failing, and the reinstall doesn't work, I tell them to use Ninite until it gets fixed.

itsnanobug avatar Aug 20 '25 12:08 itsnanobug