0 0

Install or Update reMarkable

Install:

$ProgressPreference = "SilentlyContinue"
$Path = "C:\Users\Public\Downloads"
$File = "reMarkable-setup.exe"
$downloadLink = "https://downloads.remarkable.com/latest/windows"
Write-Host "Downloading from: $downloadLink"
Invoke-WebRequest -Uri $downloadLink -OutFile "$Path\$File" -UseBasicParsing
if (-not (Test-Path "$Path\$File")) {
Write-Host "Download failed" -ForegroundColor Red
exit 1
}
Write-Host "Installing..."
Start-Process -FilePath "$Path\$File" -ArgumentList "/S" -Wait
$installed = Get-ItemProperty $uninstallKeys -ErrorAction SilentlyContinue | Where-Object { $_.DisplayName -like "*reMarkable*" }
if ($installed) {
Write-Host "Installation successful: $($installed.DisplayName) v$($installed.DisplayVersion)" -ForegroundColor Green
} else {
Write-Host "Installation could not be verified" -ForegroundColor Red
}

Update:
if (-not (Test-Path "C:\Program Files\reMarkable\reMarkable.exe")) { Write-Host "reMarkable not installed"; exit 0 }
Get-Process -Name "reMarkable" -ErrorAction SilentlyContinue | Stop-Process -Force
Start-Sleep -Seconds 2
Start-Process -FilePath "C:\Program Files\reMarkable\reMarkable.exe"
Start-Sleep -Seconds 180
$version = (Get-ItemProperty "C:\Program Files\reMarkable\reMarkable.exe").VersionInfo.FileVersion
Write-Host reMarkable $version installed