Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installers requiring interaction in UI don't work via SSH #346

Open
TomBrien opened this issue May 27, 2020 · 1 comment
Open

Installers requiring interaction in UI don't work via SSH #346

TomBrien opened this issue May 27, 2020 · 1 comment
Labels
Issue-Feature This is a feature request for the Windows Package Manager client.

Comments

@TomBrien
Copy link

Brief description of your issue

I should start by saying that I am not entirely surprised by this but trying to install an application with a installer requiring interaction (such as WinSCP) over an SSH connection just results in the installation hanging at Installing....

Steps to reproduce

  1. SSH into a machine with winget installed (note I am SSHing into an admin account and thus the prompt is elevated.
  2. Try to install (for example) WinSCP with winget install winwcp

Expected behavior

I guess winget should detect the installer is hanging and kill it providing some useful feedback.

Actual behavior

Installation just hangs at Installing...

Cancelling the install with ctrl+c and running get-process -name winscp* shows two process running:

NPM(K)    PM(M)      WS(M)     CPU(s)      Id  SI ProcessName
 ------    -----      -----     ------      --  -- -----------
     10     4.67       8.38       0.11   22476   0 WinSCP.WinSCP.5.17.5
     14     6.86      12.94       0.08   94084   0 WinSCP.WinSCP.5.17.5.tmp

RDPing into the machine and trying to install the same way gives a file access error (presumably due to these processes).

Killing these processes allows the command to work when run locally via RDP and the installer window pops up asking to install for all users or not.

I haven't tried with a X11 server running to see if I can catch the GUI

Environment

[winget --info]
Windows Package Manager v0.1.41331 Preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.18363.836
Package: Microsoft.DesktopAppInstaller v1.0.41331.0

Any other software?
@ghost ghost added the Needs-Triage Issue need to be triaged label May 27, 2020
@denelon denelon added Issue-Feature This is a feature request for the Windows Package Manager client. and removed Needs-Triage Issue need to be triaged labels Jun 2, 2020
@denelon denelon added this to the Package Manager Backlog milestone Jun 2, 2020
@falko
Copy link

falko commented Mar 8, 2021

@TomBrien how did you even manage to launch winget via ssh? Did you find a workaround for #513?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature This is a feature request for the Windows Package Manager client.
Projects
None yet
Development

No branches or pull requests

3 participants