winutil icon indicating copy to clipboard operation
winutil copied to clipboard

Winget Issue on Server 2022 using WinUtil

Open noxhosting-io opened this issue 3 years ago • 6 comments

Winget is still having a issue showing it is not installed but it is installed as I installed it with this script https://gist.githubusercontent.com/likamrat/cae833a6e5b3461709f14c093c21c293/raw/ce5a3210262b9a82626b0553e1fcefd809f52ea6/WinGet_WinSrv.ps1

winget

winutil I have already tried it on multi SV2022 and other Server Edition Works perfect on 2016, 2019, Windows 10 Windows 11 but for some reason it doesn't want to work on SV2022

Thank you

Keep Up The Great Work on This Tool Just Makes Our Life Easier 💯

noxhosting-io avatar Aug 20 '23 14:08 noxhosting-io

Your script run into the winget license issue, which is also currently affecting the winget script used internally here. To make this more confusing, your script in screenshot 1 is reporting an incorrect success. (see the n"no applicable license " text)

This relates to the following issue discussed here: https://github.com/asheroto/winget-install/issues/17 This root issue should be resolved when the upstream winget-install v2.1.0 is pulled into winutil here.

The follow-on issue is that winutil tests for the presence of the symlink file (~\AppData\Local\Microsoft\WindowsApps\winget.exe) to determine if already installed. However, this is not accurate in the case of a missing license. Technically winget exists but it is not done being installed, at least for server 2022. This causes us to get into a loop where winutil thinks winget is installed and ready for use but then it can't actually be used.

sequeltom avatar Aug 22 '23 21:08 sequeltom

Thank you @tkwj I fixed the issue by installing winget via Chocolatey choco install winget image

image

noxhosting-io avatar Sep 01 '23 01:09 noxhosting-io

You know I never thought of installing winget through chocolatey... that is actually a brilliant idea.

ChrisTitusTech avatar Sep 14 '23 01:09 ChrisTitusTech

I'm testing ur tool on Windows Server 2022, installing apps with winget it's working, but I'm not able to run tweaks:

image

As you can see program is stuck trying to make a restore point. On Windows Server 2022 restore point are not present, they are moved to Windows Backup.

Thanks, Ricky-

rickychii avatar Nov 24 '23 23:11 rickychii

Reporting the exact same problem on Windows Server 2019.

Ricky.

rickychii avatar Nov 25 '23 10:11 rickychii

Closed due to inactivity

github-actions[bot] avatar Feb 20 '24 03:02 github-actions[bot]