Skip to content

Getting Expand-Archive error on self-hosted Windows server #32

@yusancky

Description

@yusancky

After downloading Typst on self-hosted Windows server, the action used powershell to run the following command with an error.

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath 'C:\Users\yusancky\Desktop\actions-runner\_work\_temp\da208554-af3c-45b9-986c-0670b622745a' -DestinationPath 'C:\Users\yusancky\Desktop\actions-runner\_work\_temp\5f410b4c-aed3-4ca1-a3d3-6cd70f891ff4' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('C:\Users\yusancky\Desktop\actions-runner\_work\_temp\da208554-af3c-45b9-986c-0670b622745a', 'C:\Users\yusancky\Desktop\actions-runner\_work\_temp\5f410b4c-aed3-4ca1-a3d3-6cd70f891ff4', $true) }"

Expand-Archive :  is not a supported archive file format. .zip is the only supported archive file format.

This question seems to be common, and you can search for a lot of related issues on GitHub.

I've noticed that PR actions/setup-python#916 might be a viable solution.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy