Commands for installing LaserWeb 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 LaserWeb.LaserWeb -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id LaserWeb.LaserWeb -e --silentwinget uninstall --id LaserWeb.LaserWeb -e --silentBy installer
64-bit · EXE (NSIS)
Silent install
LaserWeb.Setup.4.0.999-138_win_x64.exe /SCustom folder
LaserWeb.Setup.4.0.999-138_win_x64.exe /S /D=C:\Apps\laserweb32-bit · EXE (NSIS)
Silent install
LaserWeb.Setup.4.0.999-138_win_x86.exe /SCustom folder
LaserWeb.Setup.4.0.999-138_win_x86.exe /S /D=C:\Apps\laserwebPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-laserweb.ps1
$url = 'https://github.com/LaserWeb/LaserWeb4-Binaries/releases/download/v4.0.999-138/LaserWeb.Setup.4.0.999-138_win_x64.exe'
$sha256 = '7B23AF26C629518D98074159C4F54DA4461FA212714457C01F8A363B8468C08D'
$file = Join-Path $env:TEMP 'LaserWeb.Setup.4.0.999-138_win_x64.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 '/S' -Wait install-laserweb.ps1
$url = 'https://github.com/LaserWeb/LaserWeb4-Binaries/releases/download/v4.0.999-138/LaserWeb.Setup.4.0.999-138_win_x86.exe'
$sha256 = '3A4A49D8F61F3E8EE21775B53C439E50FE839301E837F770FEEC58378F2B06DB'
$file = Join-Path $env:TEMP 'LaserWeb.Setup.4.0.999-138_win_x86.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 '/S' -Wait