Skip to content

Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.

add: improve Windows installation scripts and documentation.

Samir Hossains52bec6d84eb7
diff --git a/README.md b/README.md
index 89038e2..bf08221 100644
--- a/README.md
+++ b/README.md
@@ -84,9 +84,9 @@ You can install MovieBox-Tui using our automated scripts, or via Cargo if you ar
curl -fsSL https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/install.sh | bash
```
-### Windows (PowerShell)
+### Windows
```powershell
-irm https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/install.ps1 | iex
+powershell -c "irm https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/install.ps1 | iex"
```
### Via Cargo
diff --git a/install.ps1 b/install.ps1
index 2a0e584..e1bf906 100644
--- a/install.ps1
+++ b/install.ps1
@@ -1,3 +1,5 @@
+$ErrorActionPreference = 'Stop'
+
Write-Host "Installing MovieBox-Tui..." -ForegroundColor Cyan
$Url = "https://github.com/mesamirh/MovieBox-Tui/releases/latest/download/MovieBox_Windows_x64.zip"
@@ -5,7 +7,7 @@ $InstallDir = "$env:USERPROFILE\AppData\Local\MovieBox-Tui"
$ZipFile = "$env:TEMP\MovieBox_Windows_x64.zip"
Write-Host "Downloading latest release..."
-Invoke-WebRequest -Uri $Url -OutFile $ZipFile
+Invoke-WebRequest -Uri $Url -OutFile $ZipFile -UseBasicParsing
if (!(Test-Path $InstallDir)) {
New-Item -ItemType Directory -Force -Path $InstallDir | Out-Null