Skip to content

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

fix(installer): streamline Windows PowerShell installation

Samir Hossainsd7267e17c09e
diff --git a/README.md b/README.md
index 53599de..2767618 100644
--- a/README.md
+++ b/README.md
@@ -80,7 +80,7 @@ mkdir -p ~/.local/bin && mv moviebox-tui ~/.local/bin/
Using **PowerShell**:
```powershell
-irm https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/install.ps1 -OutFile install.ps1; .\install.ps1
+irm https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/install.ps1 | iex
```
Or manual installation:
diff --git a/install.ps1 b/install.ps1
index b58c711..6490fce 100644
--- a/install.ps1
+++ b/install.ps1
@@ -25,7 +25,6 @@ if ($Help) {
MovieBox-TUI Installer (Windows PowerShell)
USAGE:
- irm https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/install.ps1 -OutFile install.ps1; .\install.ps1 [OPTIONS]
irm https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/install.ps1 | iex
.\install.ps1 [OPTIONS]
@@ -228,6 +227,9 @@ if (-not $NoModifyPath) {
[Environment]::SetEnvironmentVariable("PATH", $NewPath, "User")
$PathModified = $true
}
+ if ($env:PATH -notmatch [regex]::Escape($EffectiveInstallDir)) {
+ $env:PATH = "$env:PATH;$EffectiveInstallDir"
+ }
}
$PlayerDetected = ""