Kommandon för att installera doc-exec 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 combostrap.doc-exec -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id combostrap.doc-exec -e --silentwinget uninstall --id combostrap.doc-exec -e --silentPer installationsfil
64-bitars · MSI · Aktuell användare
Tyst installation
msiexec /i combostrap-doc-exec-1.1.0-jre-x64.msi /qn /norestartSkriv en logg
msiexec /i combostrap-doc-exec-1.1.0-jre-x64.msi /qn /norestart /l*v "%TEMP%\doc-exec-install.log"- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\doc-exec 1.1.0
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-doc-exec.ps1
$url = 'https://github.com/combostrap/doc-exec/releases/download/v1.1.0/combostrap-doc-exec-1.1.0-jre-x64.msi'
$sha256 = '499BD76B10C72C6958A1627FEAC5E4F212FC823F836046C3170A0FC9AD6EEB3B'
$file = Join-Path $env:TEMP 'combostrap-doc-exec-1.1.0-jre-x64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait