From 3bfc312587957bf8622484445ff0890b20a01e22 Mon Sep 17 00:00:00 2001 From: es3n1n Date: Tue, 20 May 2025 12:01:22 +0900 Subject: [PATCH] refactor(installer): minor installer cleanup --- README.md | 3 +++ install.ps1 | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index be96dbe..900d23d 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,9 @@ irm https://es3n1n.io/defendnot.ps1 | iex --silent > [!NOTE] > You can pass arguments to iex and installer script will forward your arguments to `defendnot-loader` as seen in examples 2 and 3. For reference what commandline arguments are allowed, see the `Usage` section below. +> [!NOTE] +> You can also directly use the 'longer' version of installer script url, which is `https://raw.githubusercontent.com/es3n1n/defendnot/refs/heads/master/install.ps1` + ### Manual Download the [latest](https://github.com/es3n1n/defendnot/releases/latest) release, extract it somewhere and launch `defendnot-loader`. diff --git a/install.ps1 b/install.ps1 index 2eff870..3ea7cbc 100644 --- a/install.ps1 +++ b/install.ps1 @@ -34,10 +34,6 @@ $zipPath = Join-Path $env:TEMP "defendnot-$arch.zip" Write-Host "Downloading $($zipAsset.name)..." Invoke-WebRequest -Uri $zipUrl -OutFile $zipPath -If (!(Test-Path $InstallPath)) { - New-Item -Type Directory -Path $InstallPath -Force | Out-Null -} - if (Test-Path $InstallPath) { Write-Host "Removing previous installation..." Remove-Item $InstallPath -Force -Recurse -ErrorAction SilentlyContinue