asheroto / winget-install

Install winget tool using PowerShell! Prerequisites automatically installed. Works on Windows 10/11 and Server 2019/2022.
https://bit.ly/winget-install
GNU General Public License v3.0
272 stars 33 forks source link

does not work on server 2019 ( but it should ) #12

Closed TheBigBear closed 1 year ago

TheBigBear commented 1 year ago

Thank you for this. Great and very helpful. Any idea why it does not work for server 2019 as-is? ( It should .. ) BTW the following GIST from @likamrat (Lior Kamrat) does work for server 2019 also.

https://gist.github.com/likamrat/cae833a6e5b3461709f14c093c21c293

But I don't like his use of the "https://store.rg-adguard.net/api/GetFiles" to get some of the downloads ... I thought I post it here in case it helps you figure out why yours does not work on server 2019?

asheroto commented 1 year ago

I'm not sure, but I have not had any luck getting it to work on Server 2019 either. It's ideally designed for Windows 11, works with Windows 10 past certain updates. Outside of that scope, even if everything is set up correctly, I can't guarantee it will still work in the future.

This might work for you for now: https://gist.github.com/likamrat/cae833a6e5b3461709f14c093c21c293?permalink_comment_id=4634351#gistcomment-4634351

I'll circle back to this when I have some more time and see if I can adjust the script at all. Leaving issue open for now.

asheroto commented 1 year ago

I'm working on a fix for this, I think I will be able to get it working.

13 is similar

asheroto commented 1 year ago

Hello,

Unfortunately winget is just not compatible with Server 2019. :-/