Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed installing GoFish on Windows11 via PowerShell script #14

Open
isurfer21 opened this issue Jun 29, 2023 · 1 comment
Open

Failed installing GoFish on Windows11 via PowerShell script #14

isurfer21 opened this issue Jun 29, 2023 · 1 comment

Comments

@isurfer21
Copy link

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>
@isurfer21 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 isurfer21 changed the title Failed to install GoFish on Windows11 via PowerShell script Failed installing GoFish on Windows11 via PowerShell script Jun 29, 2023
@gedw99
Copy link

gedw99 commented Aug 13, 2024

Hey @isurfer21

I got the same error. I am using windows 11 amr64, and it installed the amd64 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants