Ordres per instal·lar Nitropy sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
PowerShell
winget install --id NitrokeyGmbH.Nitropy -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id NitrokeyGmbH.Nitropy -e --silentwinget uninstall --id NitrokeyGmbH.Nitropy -e --silentPer instal·lador
64 bits · MSI · Tots els usuaris · en-US
Instal·lació silenciosa
msiexec /i nitropy-v0.14.1-x64-windows-installer.msi /qn /norestartDesar un registre
msiexec /i nitropy-v0.14.1-x64-windows-installer.msi /qn /norestart /l*v "%TEMP%\nitropy-install.log"Desinstal·lar
msiexec /x {2BCD1294-5A3D-4421-9E19-039CC0ACA39F} /qn /norestart- Codi de producte MSI
- {2BCD1294-5A3D-4421-9E19-039CC0ACA39F}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2BCD1294-5A3D-4421-9E19-039CC0ACA39F}
- UpgradeCode
- {0EF8A76B-070C-407E-AED2-BED822A6F4F5}
- Carpeta d’instal·lació
- %ProgramFiles%\Nitrokey\Nitropy\_internal
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-nitropy.ps1
$url = 'https://github.com/Nitrokey/pynitrokey/releases/download/v0.14.1/nitropy-v0.14.1-x64-windows-installer.msi'
$sha256 = '21F1F005EDE3FCE29CC0B7316178447DBA7E9389F6DE7A096C2A3C7874EBF243'
$file = Join-Path $env:TEMP 'nitropy-v0.14.1-x64-windows-installer.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