Kommandon för att installera Open-Shell 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 Open-Shell.Open-Shell-Menu -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Open-Shell.Open-Shell-Menu -e --silentwinget uninstall --id Open-Shell.Open-Shell-Menu -e --silentPer installationsfil
64-bitars · EXE · Alla användare
Tyst installation
OpenShellSetup_4_4_198.exe /quiet /norestart32-bitars · EXE · Alla användare
Tyst installation
OpenShellSetup_4_4_198.exe /quiet /norestartPowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-open-shell.ps1
$url = 'https://github.com/Open-Shell/Open-Shell-Menu/releases/download/v4.4.198/OpenShellSetup_4_4_198.exe'
$sha256 = 'A4D2D4459DE55B5E962BA2A14F7BB794170511649138173DFA72949837B48C3F'
$file = Join-Path $env:TEMP 'OpenShellSetup_4_4_198.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 '/quiet /norestart' -Wait install-open-shell.ps1
$url = 'https://github.com/Open-Shell/Open-Shell-Menu/releases/download/v4.4.198/OpenShellSetup_4_4_198.exe'
$sha256 = 'A4D2D4459DE55B5E962BA2A14F7BB794170511649138173DFA72949837B48C3F'
$file = Join-Path $env:TEMP 'OpenShellSetup_4_4_198.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 '/quiet /norestart' -Wait