Kommandon för att installera Protecc 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 FireCubeStudios.Protecc -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id FireCubeStudios.Protecc -e --silentwinget uninstall --id FireCubeStudios.Protecc -e --silentPer installationsfil
64-bitars · MSIX
Tyst installation
Add-AppxPackage -Path 2505FireCubeStudios.Protecc_1.2.11.0_neutral___k45w5yt88e21j.MsixbundleAvinstallation
Get-AppxPackage -Name 2505FireCubeStudios.Protecc | Remove-AppxPackage32-bitars · MSIX
Tyst installation
Add-AppxPackage -Path 2505FireCubeStudios.Protecc_1.2.11.0_neutral___k45w5yt88e21j.MsixbundleAvinstallation
Get-AppxPackage -Name 2505FireCubeStudios.Protecc | Remove-AppxPackagePowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-protecc.ps1
$url = 'https://github.com/FireCubeStudios/Protecc/releases/download/v1.2.11.0/2505FireCubeStudios.Protecc_1.2.11.0_neutral___k45w5yt88e21j.Msixbundle'
$sha256 = 'F37964CEA0617BE452BB9508FAA3B6F3CAE87F5E4EC97E0A2D44891397E32589'
$file = Join-Path $env:TEMP '2505FireCubeStudios.Protecc_1.2.11.0_neutral___k45w5yt88e21j.Msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-protecc.ps1
$url = 'https://github.com/FireCubeStudios/Protecc/releases/download/v1.2.11.0/2505FireCubeStudios.Protecc_1.2.11.0_neutral___k45w5yt88e21j.Msixbundle'
$sha256 = 'F37964CEA0617BE452BB9508FAA3B6F3CAE87F5E4EC97E0A2D44891397E32589'
$file = Join-Path $env:TEMP '2505FireCubeStudios.Protecc_1.2.11.0_neutral___k45w5yt88e21j.Msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file