Kommandon för att installera GCompris Educational Software 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 KDE.GCompris -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id KDE.GCompris -e --silentwinget uninstall --id KDE.GCompris -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Alla användare
Tyst installation
gcompris-teachers-26.2-win64-gcc.exe /SEgen mapp
gcompris-teachers-26.2-win64-gcc.exe /S /D=C:\Apps\gcompris-educational-software- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GCompris-Teachers
64-bitars · MSI · Alla användare
Tyst installation
msiexec /i gcompris-qt-26.2-win64-gcc.msi /qn /norestartSkriv en logg
msiexec /i gcompris-qt-26.2-win64-gcc.msi /qn /norestart /l*v "%TEMP%\gcompris-educational-software-install.log"Avinstallation
msiexec /x {67197195-9B91-4202-928C-AC7145EFBD9D} /qn /norestart- MSI-produktkod
- {67197195-9B91-4202-928C-AC7145EFBD9D}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{67197195-9B91-4202-928C-AC7145EFBD9D}
- UpgradeCode
- {1902A562-DA6F-4E3D-A56F-1B1D4273C724}
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-gcompris-educational-software.ps1
$url = 'https://download.kde.org/stable/gcompris/qt/windows/gcompris-teachers-26.2-win64-gcc.exe'
$sha256 = 'D98510A2737D1AF2576356B43561FAF09CF93E7C069ACE6542D141CFCB0D315F'
$file = Join-Path $env:TEMP 'gcompris-teachers-26.2-win64-gcc.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 '/S' -Wait install-gcompris-educational-software.ps1
$url = 'https://download.kde.org/stable/gcompris/qt/windows/gcompris-qt-26.2-win64-gcc.msi'
$sha256 = '61CEC34B90D5BD4058DAAC225882CFBF2119CA26E6BAF0B7F38CB0F981E6F72E'
$file = Join-Path $env:TEMP 'gcompris-qt-26.2-win64-gcc.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