Commands for installing DarkSwitcher 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 Iminetsoft.DarkSwitcher -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Iminetsoft.DarkSwitcher -e --silentwinget uninstall --id Iminetsoft.DarkSwitcher -e --silentBy installer
32-bit · EXE (Inno Setup) · All users
Silent install
DarkSwitcher.1.2.8463.setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
DarkSwitcher.1.2.8463.setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\darkswitcher"PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-darkswitcher.ps1
$url = 'https://github.com/iminet/DarkSwitcher/releases/download/v1.2.8463/DarkSwitcher.1.2.8463.setup.exe'
$sha256 = 'A9EA32947DC69C1DB0B94B6998F247E68BB7FC4DA7E258829200DD4C386F796B'
$file = Join-Path $env:TEMP 'DarkSwitcher.1.2.8463.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