Kommandoer til at installere Lua for Windows uden spørgsmål, fjerne programmet igen og finde det fra udrulningsværktøjer. En kommando vises kun, når den er sikker: fra manifestet eller som installationsteknologiens dokumenterede standard.
Relateret vejledning: Parametre til lydløs installation: MSI, NSIS, Inno · Afinstaller et program via registreringsdatabasen
Med 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 --silentPr. installationsfil
32-bit · EXE (Inno Setup)
Lydløs installation
LuaForWindows_v5.1.5-52.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mappe
LuaForWindows_v5.1.5-52.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\lua-for-windows"PowerShell: download, kontrollér, installér
Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.
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