Commands for installing Lua for Windows without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id rjpcomputing.luaforwindows -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id rjpcomputing.luaforwindows -e --silentwinget uninstall --id rjpcomputing.luaforwindows -e --silentBy installer
32-bit · EXE (Inno Setup)
Silent install
LuaForWindows_v5.1.5-52.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
LuaForWindows_v5.1.5-52.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\lua-for-windows"PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-lua-for-windows.ps1
$url = 'https://github.com/rjpcomputing/luaforwindows/releases/download/v5.1.5-52/LuaForWindows_v5.1.5-52.exe'
$sha256 = 'C5F96E5183ADEA82A0F0D25AD0940C7AE50D40C542D2D7331CC887D5FDDB4191'
$file = Join-Path $env:TEMP 'LuaForWindows_v5.1.5-52.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait