Kommandon för att installera ThemeSwitcher 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 Medoo.ThemeSwitcher -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Medoo.ThemeSwitcher -e --silentwinget uninstall --id Medoo.ThemeSwitcher -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
ThemeSwitcher_Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
ThemeSwitcher_Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\themeswitcher"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{EBE8483D-1D96-4972-B2AE-EC1B30D665C4}_is1
- Installationsmapp
- %ProgramFiles%\ThemeSwitcher
- DisplayVersion
- 4.2.1
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-themeswitcher.ps1
$url = 'https://github.com/Medo-bit/ThemeSwitcher/releases/download/v4.2.1/ThemeSwitcher_Setup.exe'
$sha256 = '6F4F72289659756B6090C2D681046E4E2F2957CC101283CE9CD6112AE3F854AD'
$file = Join-Path $env:TEMP 'ThemeSwitcher_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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait