Kommandon för att installera YTuff 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 HarshJha.YTuff -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id HarshJha.YTuff -e --silentwinget uninstall --id HarshJha.YTuff -e --silentPer installationsfil
64-bitars · MSI · Alla användare
Tyst installation
msiexec /i ytuff-windows-x64.msi /qn /norestartSkriv en logg
msiexec /i ytuff-windows-x64.msi /qn /norestart /l*v "%TEMP%\ytuff-install.log"Avinstallation
msiexec /x {439A181C-FA7B-41F7-94BF-151B0735FD5F} /qn /norestart- MSI-produktkod
- {439A181C-FA7B-41F7-94BF-151B0735FD5F}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{439A181C-FA7B-41F7-94BF-151B0735FD5F}
- UpgradeCode
- {A1A9D65A-2539-49EC-BFA2-6B06366E5E5D}
- DisplayVersion
- 1.0.4
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-ytuff.ps1
$url = 'https://github.com/life2harsh/ytuff/releases/download/v1.0.4/ytuff-windows-x64.msi'
$sha256 = '2B0F2396BF06A92794C5F3EF9FC088C596D5B9BCE50D6AE43C6E56896F8CAB11'
$file = Join-Path $env:TEMP 'ytuff-windows-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