Ordres per instal·lar QuantumDrive 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 GetQuantumDrive.QuantumDrive -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GetQuantumDrive.QuantumDrive -e --silentwinget uninstall --id GetQuantumDrive.QuantumDrive -e --silentPer instal·lador
64 bits · MSI
Instal·lació silenciosa
msiexec /i QuantumDrive-Setup-x64-0.2.1.msi /qn /norestart /quietDesar un registre
msiexec /i QuantumDrive-Setup-x64-0.2.1.msi /qn /norestart /quiet /l*v "%TEMP%\quantumdrive-install.log"Desinstal·lar
msiexec /x {AD90C2F6-9D29-4F0A-8461-A3BA5AD3E1E9} /qn /norestart- Codi de producte MSI
- {AD90C2F6-9D29-4F0A-8461-A3BA5AD3E1E9}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AD90C2F6-9D29-4F0A-8461-A3BA5AD3E1E9}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-quantumdrive.ps1
$url = 'https://github.com/GetQuantumDrive/QuantumDrive/releases/download/v0.2.1/QuantumDrive-Setup-x64-0.2.1.msi'
$sha256 = 'E4EEC96A3176B5B88E5989B185356C1B7B22778B1CF10823E32C425F7E19FB63'
$file = Join-Path $env:TEMP 'QuantumDrive-Setup-x64-0.2.1.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', '/quiet' -Wait