refactor(installer): minor installer cleanup

This commit is contained in:
es3n1n
2025-05-20 12:01:22 +09:00
parent a11a1fe7b6
commit 3bfc312587
2 changed files with 3 additions and 4 deletions

View File

@@ -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`.

View File

@@ -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