Skip to content

install.ps1 does not detect Windows ARM and always installs x86_64 version #347

Description

@sanathusk

The PowerShell installation script does not detect the system architecture on Windows ARM devices. When running the install command on a Windows 11 ARM laptop:

irm https://deno.land/install.ps1 | iex

The script always downloads the x86_64 version (x86_64-pc-windows-msvc) regardless of the system's actual architecture, because the target is hardcoded on line 19 of the script:

 = 'x86_64-pc-windows-msvc'

While Deno does provide ARM64 builds for Windows (as noted in their 2.7 release: "Windows ARM" support), the install script does not utilize them. Users on Windows ARM devices get the x86_64 binary that runs via emulation instead of the native ARM64 version.

Expected behavior:
The script should detect the system architecture and download the appropriate version:

  • x86_64-pc-windows-msvc for x86_64 systems
  • aarch64-pc-windows-msvc for ARM64 systems

Environment:

  • Windows 11 ARM (e.g., Surface Pro X, Samsung Galaxy Book, etc.)
  • PowerShell

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions