Skip to content

Update winget default INSTALLDIR for per-machine install path - #16026

Merged
hustcer merged 1 commit into
nushell:mainfrom
hustcer:fix/winget-machine-scope-install
Jul 7, 2025
Merged

hustcer merged 1 commit into
nushell:mainfrom
hustcer:fix/winget-machine-scope-install

Conversation

@hustcer

@hustcer hustcer commented Jun 22, 2025 •

Copy link
Copy Markdown
Contributor

Description

  • Update winget default INSTALLDIR for per-machine install path to C:\Program Files\nu

User-Facing Changes

These changes, along with the manifest update PR (such as this example), will resolve issue #15949 and add --scope flag support for winget install.

After these changes are merged, the following should occur:

  1. When no nu is installed, winget install --id Nushell.Nushell --scope machine will install Nushell to C:\Program Files\nu.
  2. winget update --id Nushell.Nushell will upgrade Nushell to the latest version with machine scope.
  3. When no nu is installed, winget install --id Nushell.Nushell will install Nushell to %LOCALAPPDATA%\Programs\nu.
  4. Due to winget-cli issue #3011, winget update --id Nushell.Nushell will unexpectedly install the latest version to C:\Program Files\nu. The workaround is to run winget install --id Nushell.Nushell again to install the latest version for user scope.

Tests + Formatting

  1. Nushell install from MSI tests: https://github.com/nushell/integrations/actions/runs/16088967701
  2. Nushell install by Winget tests: https://github.com/nushell/integrations/actions/runs/16088814557
  3. Nushell Upgrade by Winget tests: https://github.com/nushell/integrations/actions/runs/16088967705 and test script: https://github.com/nushell/integrations/blob/main/tests/test-all.nu

After Submitting

The manifest files need to be updated manually for the next release, and I will do that.

@hustcer hustcer changed the title Update default INSTALLDIR for per-machine install path Update winget default INSTALLDIR for per-machine install path Jun 22, 2025
@hustcer
hustcer marked this pull request as ready for review July 5, 2025 14:09
@hustcer
hustcer merged commit a674ce2 into nushell:main Jul 7, 2025
@hustcer
hustcer deleted the fix/winget-machine-scope-install branch July 7, 2025 00:10
@github-actions github-actions Bot added this to the v0.106.0 milestone Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows Installer - Issues after automated upgrade from 0.104.0 to 0.105.1

1 participant