Skip to content

winget.exe not running on Server 2019 #1251

Closed

Description

Brief description of your issue

winget.exe Application Alias has been installed but winget itself is not there / is not starting

Steps to reproduce

I installed the Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle on a Server 2019 with latest updates.

At the first attempts not even an Application Alias was created but after several reinstalls, it finally was there in %localappdata%\Microsoft\WindowsApps

So I started PowerShell but it reports winget is not an executable file or a valid program for this operating system

Expected behavior

I expect it to install and then be able to run it.

Actual behavior

winget.exe can not be run
Error Messages screenshot:
https://www.dropbox.com/s/j1tlygpej0wple2/winget%20error.png?dl=0

Environment

Windows Server 2019 latest patch level

[winget --info]
Fehler beim Ausführen des Programms "winget.exe": Die angegebene ausführbare Datei ist keine gültige Anwendung für
diese Betriebssystemplattform.In Zeile:1 Zeichen:1
+ winget --info
+ ~~~~~~~~~~~~~.
In Zeile:1 Zeichen:1
+ winget --info
+ ~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed


Activity

  1. ghost added
    Needs-Triage
    on Jul 2, 2021
  2. rbarbrow commented on Jul 2, 2021

    @rbarbrow

    does server 2019 have the app store?
    I don't know that it can even run the app

  3. SlimRG commented on Jul 3, 2021

    @SlimRG

    Firstly, Windows Server 2019 doesn't have Microsoft Sore (you can install it, but somy dependences will not work)
    Secondly, WS 2019 has group politics to powershell, so you can't install mlots of powershell apps.
    And in the end - Windows Server 2019 has strong app and firewall malware politics which can prevent use from installation or search packages in powershell.
    You can bypass these restrictions, if you are able to work with Windows Server. But if you only starts your way in learning Windows Server - you souldn't use winget and other non-standard solutions for this system

  4. NicTanghe commented on Jul 5, 2021

    @NicTanghe

    BIt weird that its not adviced to use winget on servers.

  5. github-account1111 commented on Jul 6, 2021

    @github-account1111

    does server 2019 have the app store?
    I don't know that it can even run the app

    Isn't winget supposed to ship to all Windows versions 1809 via Windows Update? It'd be a bummer if we had to sign into a Microsoft account just to be able to use it..

  6. removed
    Needs-Triage
    on Jul 6, 2021
  7. denelon commented on Jul 6, 2021

    @denelon
    Collaborator

    Duplicate of #144

  8. ghost closed this as completedon Jul 6, 2021
  9. ghost added
    Resolution-Duplicate
    on Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-Duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions