Skip to content

Desktop installer defaults to single-user installation on Windows #35334

Closed as not planned

Description

@edisonzerolam

Description

The Electron-based desktop app installer uses NSIS with \oneClick: true\ and \perMachine: false, which installs opencode to the user's local AppData instead of Program Files. This makes it harder for IT-managed deployments.

Steps to reproduce

  1. Run the opencode Desktop installer on Windows
  2. No installation directory prompt appears
  3. Installed to AppData instead of Program Files

OpenCode version

1.17.11

Operating System

Windows 11

Activity

  1. github-actions commented on Jul 4, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    These issues cover the same core problem of the installer defaulting to per-user AppData instead of allowing machine-wide or custom directory installs.

  2. edisonzerolam commented on Jul 4, 2026

    @edisonzerolam
    Author

    Fix: Change NSIS installer config to oneClick: false, perMachine: true, add allowToChangeInstallationDirectory: true. Users get a proper installation directory prompt and admin install by default.

    Branch: edisonzerolam/opencode:fix/win32-desktop-install-path
    Cherry-pick:

    git fetch https://github.com/edisonzerolam/opencode fix/win32-desktop-install-path
    git cherry-pick FETCH_HEAD
    

    File: packages/desktop/electron-builder.config.ts

  3. ADD-Izan-Garcia commented on Jul 14, 2026

    @ADD-Izan-Garcia

    Automatic installation per user is very difficult to manage when it comes to updating and testing new versions. This issue is a must.

  4. github-actions commented on Sep 13, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions