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

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