You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried installing GoFish on Windows11 via PowerShell script, I got these errors, where it is expecting archive in .zip format rather than .gz format.
PS C:\Users\AK> Set-ExecutionPolicy Bypass -Scope Process -Force
PS C:\Users\AK> iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/tinned-fish/gofish/main/scripts/install.ps1'))
Downloading 'https://github.com/tinned-fish/gofish/releases/download/v0.19.2/gofish-0.19.2-windows-amd64.tar.gz' Preparing to install into 'C:\ProgramData\bin'
Expand-Archive : .gz is not a supported archive file format. .zip is the only supported archive file format.
At line:23 char:1
+ Expand-Archive -Path "$file" -DestinationPath "$tempDir" -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (.gz:String) [Expand-Archive], IOException
+ FullyQualifiedErrorId : NotSupportedArchiveFileExtension,Expand-Archive
Move-Item : Cannot find path 'C:\Users\AK\AppData\Local\Temp\Fish\windows-amd64\gofish.exe' because it does not
exist.
At line:25 char:1
+ Move-Item -Path "$tempDir\windows-amd64\gofish.exe" -Destination "$bi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\AK...md64\gofish.exe:String) [Move-Item], ItemNotFoundExce
ption
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.MoveItemCommand
Adding 'C:\ProgramData\bin' to system PATH
Exception calling "SetEnvironmentVariable" with "3" argument(s): "Requested registry access is not allowed."
At line:31 char:3
+ [Environment]::SetEnvironmentVariable('Path',$newPath,[System.Envir ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SecurityException
gofish installed to 'C:\ProgramData\bin\gofish.exe'
Restart your terminal, then run 'gofish init' to get started!
PS C:\Users\AK>
The text was updated successfully, but these errors were encountered:
isurfer21
changed the title
Fails to install GoFish on Windows11 via PowerShell script
Failed to install GoFish on Windows11 via PowerShell script
Jun 29, 2023
isurfer21
changed the title
Failed to install GoFish on Windows11 via PowerShell script
Failed installing GoFish on Windows11 via PowerShell script
Jun 29, 2023
When I tried installing GoFish on Windows11 via PowerShell script, I got these errors, where it is expecting archive in .zip format rather than .gz format.
The text was updated successfully, but these errors were encountered: