Ordres per instal·lar RedNotebook 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 jendrikseipp.RedNotebook -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id jendrikseipp.RedNotebook -e --silentwinget uninstall --id jendrikseipp.RedNotebook -e --silentPer instal·lador
32 bits · EXE (Inno Setup) · Tots els usuaris · pt-BR
Instal·lació silenciosa
rednotebook-2.43.exe /sp- /verysilent /norestartUna altra carpeta
rednotebook-2.43.exe /sp- /verysilent /norestart /DIR="C:\Apps\rednotebook"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{82A7E9C3-D3F3-4B85-9AC3-D0E011D19E50}_is1
- Carpeta d’instal·lació
- %ProgramFiles%\RedNotebook
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-rednotebook.ps1
$url = 'https://github.com/jendrikseipp/rednotebook/releases/download/v2.43/rednotebook-2.43.exe'
$sha256 = '9B153C8A88DB1743689672A488DAA96CCE817D97DB18524DB63E0E2C8248C43A'
$file = Join-Path $env:TEMP 'rednotebook-2.43.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 '/sp- /verysilent /norestart' -Wait