@echo off
rem H.A.N.S.A. node installer for Windows: double-click this file.
rem It opens the installer window (install-gui.ps1), which runs the signed install.ps1
rem in C:\hansa-node (or a folder you choose). No administrator rights needed.
rem Source: https://hansa.institute/get/install-gui.ps1 and https://hansa.institute/get/install.ps1
echo Opening the H.A.N.S.A. installer...
powershell -NoProfile -ExecutionPolicy Bypass -Command "$f = Join-Path $env:TEMP 'hansa-install-gui.ps1'; try { Invoke-WebRequest -UseBasicParsing https://hansa.institute/get/install-gui.ps1 -OutFile $f } catch { Write-Host ('Could not download the installer: ' + $_.Exception.Message) -ForegroundColor Red; Read-Host 'Press Enter to close'; exit 1 }; Start-Process powershell.exe -WindowStyle Hidden -ArgumentList @('-NoProfile', '-STA', '-ExecutionPolicy', 'Bypass', '-File', $f)"
