Files
oh-my-posh/packages/msi
dba37ed941 fix(nu): gracefully skip init when oh-my-posh is not installed (#7442)
* fix(nu): add early return guard when oh-my-posh is not available

If a user uninstalls oh-my-posh without removing the autoload script,
the script would still run on every Nu startup and produce errors.

Add an early return guard at the top of omp.nu that exits the script
immediately if the executable is no longer available. Handles both
install modes:
- Absolute path (standard install): \path exists\
- Base name only (MSIX / --strict mode): \which\

Fixes #7245

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(msi): accept WiX v7 EULA in build script

WiX v7 now requires explicit EULA acceptance under the Open Source
Maintenance Fee policy. Add -acceptEula wix7 to the wix build command
so CI releases don't fail.

See: https://docs.firegiant.com/wix/osmf/#direct-acceptance

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(nu): guard path exists check to absolute/relative paths only

When the executable is stored as a bare name (e.g. MSIX / --strict mode),
\path exists\ resolves against the current working directory and may
incorrectly return true if an unrelated file with the same name exists
there. Only apply the \path exists\ check when the executable string
looks like a path (contains a separator or starts with . / ~); otherwise
rely solely on \which\ for the PATH-based lookup.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-09 09:05:31 +02:00
..
2025-06-25 11:01:05 +02:00
2024-11-23 20:58:29 +01:00
2024-11-25 08:18:39 +01:00

MSI Package

Prerequisites

  • dotnet
  • wix: dotnet tool install --global wix

Build the package

This guide assumes and advices the use of PowerShell as your shell environment for this purpose.

Set the environment variables

$env:VERSION = "1.3.37"

Build the installer

wix build -arch arm64 -out install-arm64.msi

Install the package

For the current user

install-arm64.msi

For all users

install-arm64.msi ALLUSERS=1