Ordres per instal·lar Paste Into File 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 PasteIntoFile.PasteIntoFile -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PasteIntoFile.PasteIntoFile -e --silentwinget uninstall --id PasteIntoFile.PasteIntoFile -e --silentPer instal·lador
32 bits · MSI · Usuari actual · en-US
Instal·lació silenciosa
msiexec /i PasteIntoFile_v5.6.1_installer_signed.msi /qn /norestartDesar un registre
msiexec /i PasteIntoFile_v5.6.1_installer_signed.msi /qn /norestart /l*v "%TEMP%\paste-into-file-install.log"Desinstal·lar
msiexec /x {CA74FFE0-A1A2-42B6-8DD3-358725B79F9A} /qn /norestart- Codi de producte MSI
- {CA74FFE0-A1A2-42B6-8DD3-358725B79F9A}
- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{CA74FFE0-A1A2-42B6-8DD3-358725B79F9A}
- UpgradeCode
- {D3BEE3F0-4EC0-44CC-ADDC-E7A3E133B9D2}
- Carpeta d’instal·lació
- %ProgramFiles(x86)%\PasteIntoFile
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-paste-into-file.ps1
$url = 'https://github.com/eltos/PasteIntoFile/releases/download/v5.6.1/PasteIntoFile_v5.6.1_installer_signed.msi'
$sha256 = 'EC03659D9D52851D0ADE06EB32A02FA25ADAB88AFB6E0060DFC23A60A402927E'
$file = Join-Path $env:TEMP 'PasteIntoFile_v5.6.1_installer_signed.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