Kommandon för att installera TheBrain utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id TheBrain.TheBrain -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id TheBrain.TheBrain -e --silentwinget uninstall --id TheBrain.TheBrain -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
Tyst installation
TheBrain-15.0.656-x64-Setup.exe /SEgen mapp
TheBrain-15.0.656-x64-Setup.exe /S /D=C:\Apps\thebrain- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\392aefa7-e3c1-510d-99ca-500f7a312b9b
64-bitars · EXE (NSIS) · Alla användare
Tyst installation
TheBrain-15.0.656-x64-Setup.exe /SEgen mapp
TheBrain-15.0.656-x64-Setup.exe /S /D=C:\Apps\thebrain- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\392aefa7-e3c1-510d-99ca-500f7a312b9b
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-thebrain.ps1
$url = 'https://updater.thebrain.com/files/TheBrain-15.0.656-x64-Setup.exe'
$sha256 = '2B41DF0A852154A777D1FE1BBFD4DE09ABEA3324A08114D1E8C13D6BE18F4CA3'
$file = Join-Path $env:TEMP 'TheBrain-15.0.656-x64-Setup.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-thebrain.ps1
$url = 'https://updater.thebrain.com/files/TheBrain-15.0.656-x64-Setup.exe'
$sha256 = '2B41DF0A852154A777D1FE1BBFD4DE09ABEA3324A08114D1E8C13D6BE18F4CA3'
$file = Join-Path $env:TEMP 'TheBrain-15.0.656-x64-Setup.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