Commands for installing WinMemoryOpt 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 Optico.WinMemoryOpt -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Optico.WinMemoryOpt -e --silentwinget uninstall --id Optico.WinMemoryOpt -e --silentBy installer
64-bit · EXE (NSIS)
Silent install
WinMemoryOpt-Setup-1.2.2.exe /SCustom folder
WinMemoryOpt-Setup-1.2.2.exe /S /D=C:\Apps\winmemoryoptPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-winmemoryopt.ps1
$url = 'https://github.com/chienhaoc/WinMemoryOpt/releases/download/v1.2.2/WinMemoryOpt-Setup-1.2.2.exe'
$sha256 = 'BEC55DA9AAFBC20EAB94CDA67CAB54177380BE59295D5567D95517EC5269AA85'
$file = Join-Path $env:TEMP 'WinMemoryOpt-Setup-1.2.2.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