Ordres per instal·lar Dais 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 Dais.Dais -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Dais.Dais -e --silentwinget uninstall --id Dais.Dais -e --silentPer instal·lador
64 bits · EXE (NSIS) · Usuari actual
Instal·lació silenciosa
Dais_0.16.3_x64-setup.exe /SUna altra carpeta
Dais_0.16.3_x64-setup.exe /S /D=C:\Apps\dais- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Dais
64 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i Dais_0.16.3_x64_en-US.msi /qn /norestartDesar un registre
msiexec /i Dais_0.16.3_x64_en-US.msi /qn /norestart /l*v "%TEMP%\dais-install.log"Desinstal·lar
msiexec /x {E22AB3DB-CF6A-4A47-8DE8-4380051D7F33} /qn /norestart- Codi de producte MSI
- {E22AB3DB-CF6A-4A47-8DE8-4380051D7F33}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E22AB3DB-CF6A-4A47-8DE8-4380051D7F33}
- UpgradeCode
- {4F1EF755-A3C3-5E42-B1C3-DA56D31ED950}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-dais.ps1
$url = 'https://github.com/Dais-Project/Dais/releases/download/app-v0.16.3/Dais_0.16.3_x64-setup.exe'
$sha256 = '85B7027AC3963E9EF903B4263AF38494041F499F683A604FE191A4DDE28B9009'
$file = Join-Path $env:TEMP 'Dais_0.16.3_x64-setup.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 '/S' -Wait install-dais.ps1
$url = 'https://github.com/Dais-Project/Dais/releases/download/app-v0.16.3/Dais_0.16.3_x64_en-US.msi'
$sha256 = '5A59A357D523E97B82028FB51E5C5E078A3ACE021306855B662495CD99EBAE5F'
$file = Join-Path $env:TEMP 'Dais_0.16.3_x64_en-US.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