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

install.ps1 script fails with error "Unsupported 16-Bit Application". #5937

Closed
1 task done
nbdinara opened this issue Nov 25, 2024 · 5 comments
Closed
1 task done
Assignees
Labels
🐛 bug Something isn't working

Comments

@nbdinara
Copy link

Code of Conduct

  • I agree to follow this project's Code of Conduct

What happened?

Manual installation of oh-my-posh fails with error "Unsupported 16-bit Application" (see screenshot below for the full error message)
image

Command that has been used:
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1'))

Theme

Not applicable

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Not applicable since error happens during oh-my-posh installation
@nbdinara nbdinara added the 🐛 bug Something isn't working label Nov 25, 2024
@SoundersFan
Copy link

I'm getting the same. The issue is that the script is now downloading an MSI, not an EXE. But it downloads it to a file with a .exe extension and then tries to run it like an exe. But it's an MSI. You want to run msiexec -i install-x64.msi

@SoundersFan
Copy link

note: here's the PR that cause the issue: https://github.com/JanDeDobbeleer/oh-my-posh/pull/5929/files. In the install.ps1 change.

@JanDeDobbeleer
Copy link
Owner

@SoundersFan @nbdinara fixing as we speak. My bad, didn't catch that part in the script (and also didn't validate it).

@SoundersFan
Copy link

Thanks!

@nbdinara
Copy link
Author

nbdinara commented Nov 26, 2024

@JanDeDobbeleer thank you! just tested, it works now!
@SoundersFan thank you for workaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants