Skip to content

[BUG] Windows - postinstall Expand-Archive fails with powershell.exe (module autoload error) #205

@mynameistito

Description

@mynameistito

The postinstall script extracts the executor binary using powershell.exe with Expand-Archive. On some Windows setups (even with PowerShell 7 installed), powershell.exe (Windows PowerShell 5.x) fails to autoload Microsoft.PowerShell.Archive:

Expand-Archive : The 'Expand-Archive' command was found in the module
'Microsoft.PowerShell.Archive', but the module could not be loaded.

Fix: try pwsh (PowerShell 7) first, fall back to powershell.exe. pwsh always has Expand-Archive available.

Fixed in: apps/cli/src/build.ts


Identified and fixed with AI assistance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions