Skip to main content
Star zrok on GitHub Star
Version: 2.0 (Current)

Install zrok on Windows

Download and install the zrok2 binary for Windows.

Install the binary

Windows logo

Windows

  1. In PowerShell, change to the directory where you downloaded zrok:

    cd "$env:USERPROFILE\Downloads"
  2. Install zrok2 in your home directory (bin\zrok2.exe) and permanently add it to your executable search path:

    $binDir = Join-Path -Path $env:USERPROFILE -ChildPath "bin"
    New-Item -Path $binDir -ItemType Directory -ErrorAction SilentlyContinue
    $latest = Get-ChildItem -Path .\zrok*windows*.tar.gz | Sort-Object LastWriteTime | Select-Object -Last 1
    tar -xf $latest.FullName -C $binDir zrok2.exe
    $currentPath = [System.Environment]::GetEnvironmentVariable('PATH', [System.EnvironmentVariableTarget]::User)
    if ($currentPath -notlike "*$binDir*") {
    $newPath = "$currentPath;$binDir"
    [System.Environment]::SetEnvironmentVariable('PATH', $newPath, [System.EnvironmentVariableTarget]::User)
    $env:Path = $newPath
    }
  3. Verify the install:

    zrok2 version
    Output
                   _
    _____ __ ___ | | __
    |_ / '__/ _ \| |/ /
    / /| | | (_) | <
    /___|_| \___/|_|\_\

    v2.0.0 [c889005]