Příkazy pro instalaci programu Lua bez dotazů, jeho odinstalaci a detekci v nástrojích pro nasazení. Příkaz je uveden jen tehdy, když je přesně známý: z manifestu nebo ze zdokumentovaných parametrů technologie instalátoru.
Související návod: Parametry tiché instalace: MSI, NSIS, Inno Setup · Odinstalace programu přes registr nebo PowerShell
Přes winget
PowerShell
winget install --id DEVCOM.Lua -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DEVCOM.Lua -e --silentwinget uninstall --id DEVCOM.Lua -e --silentPodle instalátoru
64bit · MSI
Tichá instalace
msiexec /i Lua-5.4.6-win64.msi /qn /norestartZapsat protokol
msiexec /i Lua-5.4.6-win64.msi /qn /norestart /l*v "%TEMP%\lua-install.log"Odinstalace
msiexec /x {9C5329C4-B469-4EB5-9BAE-DE5C3B1B3000} /qn /norestart- Kód produktu MSI
- {9C5329C4-B469-4EB5-9BAE-DE5C3B1B3000}
- Klíč odinstalace v registru
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9C5329C4-B469-4EB5-9BAE-DE5C3B1B3000}
- UpgradeCode
- {3E5A792D-9D31-41D5-A93F-629AB7C7683D}
PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
install-lua.ps1
$url = 'https://github.com/DevelopersCommunity/cmake-lua/releases/download/v5.4.6/Lua-5.4.6-win64.msi'
$sha256 = '1087ABB5ACA89CAD29283A17745AC2819AA46CA076084E8B3416DB87D2694ED8'
$file = Join-Path $env:TEMP 'Lua-5.4.6-win64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait