Merge pull request #19 from es3n1n/powershell-fix-newline

refactor(installer): change install loc to program files
This commit is contained in:
Arsenii es3n1n
2025-05-20 15:33:59 +09:00
committed by GitHub

View File

@@ -1,5 +1,6 @@
#Requires -RunAsAdministrator
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
$InstallPath = "$env:ProgramData\defendnot" $InstallPath = "$env:ProgramFiles\defendnot"
switch -Wildcard ($env:PROCESSOR_ARCHITECTURE) { switch -Wildcard ($env:PROCESSOR_ARCHITECTURE) {
"AMD64" { $arch = "x64" } "AMD64" { $arch = "x64" }
@@ -46,7 +47,7 @@ Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipPath, $InstallPath) [System.IO.Compression.ZipFile]::ExtractToDirectory($zipPath, $InstallPath)
Remove-Item $zipPath Remove-Item $zipPath
Write-Host "`nInstalled to $InstallPath" Write-Host "Installed to $InstallPath"
Write-Host "Starting..." Write-Host "Starting..."
Write-Host "Args: $args" Write-Host "Args: $args"
& "$InstallPath\defendnot-loader.exe" @args & "$InstallPath\defendnot-loader.exe" @args