$msiUrl = 'https://rust.flypelican.com.au/fprustdesk-1.5.3.msi' $msiPath = Join-Path $env:TEMP 'fprustdesk-1.5.3.msi' Invoke-WebRequest -Uri $msiUrl -OutFile $msiPath -ErrorAction Stop #$arguments = "/i `"$msiPath`" /qn /norestart CREATEDESKTOPSHORTCUTS=N" $arguments = "/i `"$msiPath`" /qn" $process = Start-Process -FilePath 'msiexec.exe' -ArgumentList $arguments -Wait -PassThru if ($process.ExitCode -ne 0) { throw "RustDesk MSI installation returned unexpected exit code $($process.ExitCode)." } Restart-Computer -Force