-
Notifications
You must be signed in to change notification settings - Fork 802
Description
Steps to reproduce
Following the instructions at https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH-Using-MSI to do a test installation on a VM before trying it on a larger scale:
- Using PowerShell in Administrator mode, on Windows 10 Enterprise Edition 20H2 build 19042.1706. (The production systems are running build 1766, this test VM just happens to be a bit older.)
msiexec /i OpenSSH-Win64-v8.9.1.0.msi ADDLOCAL=Client
Expected behavior
I expected either a text-based or GUI popup installer, to install only the client feature.
Actual behavior
A small installer dialog appears, gets as far as "Configuring " (it's visible for only a second), then... that's it. The installer exits, nothing is installed, and no error messages are displayed either in the PowerShell window or in GUI format.
After reading issue #1936, I tried running the installer again without the ADDLOCAL, figuring if it put both client and server in place, I could always try rerunning with REMOVE=Server to take sshd back out. Got the same early-exit, no-op, no diagnostics behavior.
Then I wondered whether it might be detecting the original outdated OpenSSH feature that I'm trying to replace, and bailing out because it's present. So I ran Remove-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 which as expected removed C:\Windows\System32\OpenSSH altogether. However, running the MSI after that still did nothing, with no errors.
As a workaround, I gave up on the MSI and downloaded the OpenSSH-Win64.zip instead. This works in that I can move it in place and then tweak security permissions as documented in the first four steps on https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH, but manually extracting a zip file and shuffling around permissions isn't going to fly with the larger IT organization here, even if it's scripted. They'll accept a signed MSI from Microsoft, but they're scared of anything that looks "unpolished".
Error details
No errors are mentioned.
Environment data
Name Value
---- -----
PSVersion 5.1.19041.1682
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.1682
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1Version
OpenSSH-Win64-v8.9.1.0