Befehle, um OpenSC smartcard framework ohne Rückfragen zu installieren, wieder zu entfernen und in Verteilungswerkzeugen zu erkennen. Ein Befehl erscheint nur, wenn er feststeht: aus dem Manifest oder als dokumentierter Standard der jeweiligen Installer-Technik.
Passende Anleitung: Silent-Install-Parameter: MSI, NSIS, Inno Setup · Programm über Registry oder PowerShell deinstallieren
Mit winget
PowerShell
winget install --id OpenSC.OpenSC -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenSC.OpenSC -e --silentwinget uninstall --id OpenSC.OpenSC -e --silentNach Installer
64-Bit · MSI · Alle Benutzer · en-US
Stille Installation
msiexec /i OpenSC-0.27.1_x64.msi /qn /norestartProtokoll schreiben
msiexec /i OpenSC-0.27.1_x64.msi /qn /norestart /l*v "%TEMP%\opensc-smartcard-framework-install.log"Deinstallation
msiexec /x {9D5A6608-E2DC-48F4-92DD-A44D56B83DE9} /qn /norestart- MSI-Produktcode
- {9D5A6608-E2DC-48F4-92DD-A44D56B83DE9}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9D5A6608-E2DC-48F4-92DD-A44D56B83DE9}
- UpgradeCode
- {9A449570-69A2-11E0-9CC6-955B4824019B}
- Installationsordner
- %ProgramFiles%\OpenSC Project\OpenSC
32-Bit · MSI · Alle Benutzer · en-US
Stille Installation
msiexec /i OpenSC-0.27.1_x86.msi /qn /norestartProtokoll schreiben
msiexec /i OpenSC-0.27.1_x86.msi /qn /norestart /l*v "%TEMP%\opensc-smartcard-framework-install.log"Deinstallation
msiexec /x {1946A0F8-901C-4D6F-961B-EC9ED09E41D8} /qn /norestart- MSI-Produktcode
- {1946A0F8-901C-4D6F-961B-EC9ED09E41D8}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{1946A0F8-901C-4D6F-961B-EC9ED09E41D8}
- UpgradeCode
- {69428F65-B96D-458D-BB87-DBB5FDB35DCE}
- Installationsordner
- %ProgramFiles(x86)%\OpenSC Project\OpenSC
PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
install-opensc-smartcard-framework.ps1
$url = 'https://github.com/OpenSC/OpenSC/releases/download/0.27.1/OpenSC-0.27.1_x64.msi'
$sha256 = '88EA45E848063FF5F3594A457B7F023223472EAE9C9C543F8035F7689BB7B319'
$file = Join-Path $env:TEMP 'OpenSC-0.27.1_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 install-opensc-smartcard-framework.ps1
$url = 'https://github.com/OpenSC/OpenSC/releases/download/0.27.1/OpenSC-0.27.1_x86.msi'
$sha256 = '266E1CC593922814A695951F9F39CAFE22D9334AB5E5AA96B607BD045A9DFE49'
$file = Join-Path $env:TEMP 'OpenSC-0.27.1_x86.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