Ordres per instal·lar NitroShare 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 NathanOsman.NitroShare -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id NathanOsman.NitroShare -e --silentwinget uninstall --id NathanOsman.NitroShare -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · en-US
Instal·lació silenciosa
nitroshare-0.3.4-windows-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
nitroshare-0.3.4-windows-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\nitroshare"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{174A4547-917E-4BAF-9F25-FCE545CCD487}_is1
32 bits · EXE (Inno Setup) · en-US
Instal·lació silenciosa
nitroshare-0.3.4-windows-x86.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
nitroshare-0.3.4-windows-x86.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\nitroshare"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{174A4547-917E-4BAF-9F25-FCE545CCD487}_is1
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-nitroshare.ps1
$url = 'https://launchpadlibrarian.net/340674247/nitroshare-0.3.4-windows-x86_64.exe'
$sha256 = '0816AA1147F66D09B5AF96170AB34361516A58A98D98470025B285ADE71CA358'
$file = Join-Path $env:TEMP 'nitroshare-0.3.4-windows-x86_64.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-nitroshare.ps1
$url = 'https://launchpadlibrarian.net/340674463/nitroshare-0.3.4-windows-x86.exe'
$sha256 = 'FF1F14EBF19E456B6AB5FFA67AE3C004242EA4F6AC7266CF9587A1BEA6A2F97F'
$file = Join-Path $env:TEMP 'nitroshare-0.3.4-windows-x86.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait