r/PowerShell • • 1d ago

Question No MSI for latest version of PowerShell

I know they announced this ages ago that they were no longer going to release an MSI version of PowerShell. But it seems there is no executable as well? There are only zipped and msix versions now.

This is super annoying. I have a bunch of windows 2019 and 2022 servers that don't support the MS store so I can't install the msix bundle. Yes I know there are some work arounds for server 2022 to get the msix to work but no way I'm going to be doing that on prod.

And the zip just extracts the files but doesn't install them.

I'm missing something here? BTW, I could very well be, it has been a long week.

What is everyone else doing?

80 Upvotes

53 comments sorted by

69

u/Alaknar 1d ago • Bravo

Why would a Microsoft product properly support Microsoft products?

It's like when WinGet got released not supporting PowerShell and the GitHub discussions with the dev team revealed that they have zero clue about PowerShell altogether.

8

u/jeek_ 1d ago

💯 Yeah Seemed like such an odd choice to build a standalone exe that didn't support PowerShell.

18

u/Bahurs1 1d ago

I believe it was also stolen ready made concept. I forgot the guy, but I remember reading an article that mentioned how microslop initially wanted to on-board the project officially or something only to ghost the dude and come out with a complete copycat

30

u/jungleboydotca 1d ago

I think the current answer is that they'll figure it out later/soon.

Production should be running LTS, which still has MSIs.

-9

u/jeek_ 1d ago edited 1d ago

We have a bunch of jumpsuits used for management tasks so nice to run the latest version on them

13

u/xCharg 1d ago

Run latest LTS on them.

If you disregard it and want to run whatever-absolutely-latest then your argument "no way I'm going to be doing workarounds in prod" stops being relevant as avoiding running LTS is a workaround. And unnecessary one.

1

u/BlackV 1d ago

They 100% do not need the latest version

Doublely so of they are management tasks the benefit from being stable and minimal changes

1

u/fdeyso 1d ago

If anything the latest cmdlets are needed for whatever is installed, but that’s a separate task.

32

u/gandraw 1d ago

There are already a lot of complaints on Github on how stupid that is. I hope they actually listen this time and have this fixed by the time of 7.8

7

u/jeek_ 1d ago

I might head on over there and voice my concern as well

-5

u/felix1429 1d ago

I'm sure that'll get them to change their mind!

16

u/Michal_F 1d ago edited 1d ago

I think it's stuppid decision by managment who want to push this and don't care about legacy environment as they have WPS 5.1. On windows we will skip probably 7.7 and wait on 7.6 until it will be more stable, but in our case we use it for automation running on Linux agents, so no change for us :)

I was looking also on official github issue https://github.com/PowerShell/PowerShell/issues/27565

And found there, that some company created 7.7 msi package, we will see maybe if Microsoft fail, some one there will create it, question will be how reliable and trustworthy this will be ..

https://github.com/Devolutions/pwsh-distro

Edit: Please upvote this on github if you can. https://github.com/PowerShell/PowerShell/issues/27383

3

u/jeek_ 1d ago

Thanks I'll check this out.

10

u/SaltDeception 1d ago

Devolutions is reputable

32

u/jayhawk88 1d ago

Admins: "Hey, where are the MSI's?"

MS: "MSI's? Plebian. You disgust us, frankly. Use Store."

Admins: "But what about..."

MS: "USE STORE! Re-enginner your entire network and security postures to accommodate if you have to."

5 years later

Admins: "Hey, where are the Store apps?"

MS: "Store? Fuck Store and fuck you too. Use our new technology, CompileBuddy."

10

u/the_lazy_sysadmin 23h ago

I miss the simplicity of the calculator app just being a free-floating .exe, and it functioning at all not hinging on the presence of the Store app :/ ... during my first foray into desktop imaging, I found out the hard way what ripping out the MS Store app does to other appx apps 💀 ...

20

u/brianrtross 1d ago

This also impacts powershell remoting… it doesn’t work for the store/bundle method of install.

This is ridiculous for sure…

6

u/Flettys 1d ago

Pin 7.6 MSI.

7.7 is deeply broken.

Check again with 7.9 once the churn settles, 7.8 is also a lost-cause with the number of required fixes.

5

u/alconaft43 1d ago

yes, we need machine wide msi installer.

3

u/gusman21 23h ago

can you just download the msi using winget?
winget download --id Microsoft.PowerShell --source winget --installer-type wix --download-directory "C:\Installers"

2

u/SaltDeception 18h ago

No. Winget just points back to the download artifacts on the PowerShell/PowerShell GitHub repo, and the manifest only includes .msixbundle files.

https://github.com/microsoft/winget-pkgs/blob/master/manifests/m/Microsoft/PowerShell/7.7.0.0/Microsoft.PowerShell.installer.yaml

9

u/ftw_dan 1d ago

Msix is cancer

2

u/Losha2777 10h ago

I was just wondering same thing yesterday.

1

u/arslearsle 1d ago

You can always trust Microsoft, to maie the right decision, after trying the wrong ones first. Same old shitshow, never ending story.

1

u/KevMar Community Blogger 1d ago edited 1d ago

To install the zip: unblock the zip, then extract to a safe location' and optionally add the location to the %PATH%.

But I agree that removing the MSI option was a bad idea. This is going to quickly be a disaster. I'm surprised they didn't count this as a breaking change as they put up a lot of resistance to doing that.

Edit: I forget what winrm needs. Not sure what else I'm missing.

2

u/BlackV 1d ago

Need to register an endpoint

1

u/BigCatsAreYes 15h ago

Okay, but how is PowerShell remoting going to work from a portable install of powershell? Surely PSremoteing needs some sort of 100% online hook in the network?

1

u/KevMar Community Blogger 13h ago

WinRM is that always online network hook (pre installed windows service). Run Enable-PSRemoting from pwsh to register pwsh to it.

1

u/Over_Dingo 1d ago

stay on 7.6 branch, for now they seem to be in parallel

1

u/420GB 23h ago

I am not aware of any practical solution besides multi-pwsh

1

u/rthonpm 21h ago

Stick with the LTS versions. 7.6 goes end of life close to Server 2019 (November 2028 for PS, January 2029 for the server OS).

1

u/Tomazim 5h ago

Stick with 7.6 has been my only solution

1

u/Reaction-Consistent 4h ago

I created a powershell script to install the MSIX version, but had to add code to search for and uninstall any version of 7.X.

1

u/Revolutionary-Gold53 1d ago

It was put out a while ago that MS is moving to using .msix install files.

0

u/myp0wa 1d ago

Go with zip. This is easy man. MSIX is shot and have a lot of limitation currently. ZIP is the way.

0

u/Educational_Dog_1461 18h ago

Upgrade your servers…

-10

u/Medium-Comfortable 1d ago

winget install -e --id Microsoft.PowerShell

6

u/jeek_ 1d ago

No winget for server 2019 or 2022 so that won't help.

0

u/alconaft43 1d ago

you can install winget on 2020.

-8

u/stopthatastronaut 1d ago

Chocolatey

6

u/Alaknar 1d ago

Might as well install winget then.

-15

u/Incrediblecodeman 1d ago

Ni one cares about the legacy servers you ought to be moving to server less or server core.

6

u/BlackV 1d ago

Incrediblecodeman
Ni one cares about the legacy servers you ought to be moving to server less or server core.

Server core that also does not support MSIX?

Well done

-7

u/Incrediblecodeman 1d ago

It was a joke nerd.

1

u/BlackV 1d ago edited 1d ago

Incrediblecodeman -2 points 4 days ago
That’s of poor taste. If you cant be happy in life it’s your place to change life. Don’t make the vibes all low for others.

-5

u/Incrediblecodeman 1d ago

Some one can’t take a joke

3

u/brutesquad01 1d ago

Legacy? I didn't realize it's 2031 already...

-3

u/Incrediblecodeman 1d ago

Well it’s half a joke but we need to embrace just letting go and learning the new stuff. Gen Z and grey beards will bicker