Skip to content

System-scope "all users" install defaults to current user folder #17111

@Kissaki

Description

@Kissaki

Bug report form

  • I have done a basic search of the issue tracker to find any existing issues that are similar.
  • I have checked that my version is at least the latest stable release available via my installation method.

Describe the bug

In the Windows installer, when installing for "all users" (system scope), the installer defaults to a user path instead of a system path.

How to reproduce

  1. nu-0.108.0-x86_64-pc-windows-msvc.msi
  2. Advanced
  3. Select "for all users"
  4. The path defaults to %USERPROFILE%\AppData\Local\Programs\nu\ instead of ProgramFiles

Expected behavior

The path defaults to %ProgramFiles%\Nushell\ or %ProgramFiles%\nu\

Configuration

Tested with 0.108.0 and 0.109.1, nu-0.108.0-x86_64-pc-windows-msvc.msi and nu-0.109.1-x86_64-pc-windows-msvc.msi

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:needs-triageAn issue that hasn't had any proper look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions