From 7fc202497eb2f48af1781bb4e5570c5c3609629c Mon Sep 17 00:00:00 2001 From: es3n1n Date: Tue, 20 May 2025 15:33:08 +0900 Subject: [PATCH] refactor(installer): change install loc to program files --- install.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.ps1 b/install.ps1 index 6102a01..1b23893 100644 --- a/install.ps1 +++ b/install.ps1 @@ -1,5 +1,6 @@ +#Requires -RunAsAdministrator $ErrorActionPreference = "Stop" -$InstallPath = "$env:ProgramData\defendnot" +$InstallPath = "$env:ProgramFiles\defendnot" switch -Wildcard ($env:PROCESSOR_ARCHITECTURE) { "AMD64" { $arch = "x64" } @@ -46,7 +47,7 @@ Add-Type -AssemblyName System.IO.Compression.FileSystem [System.IO.Compression.ZipFile]::ExtractToDirectory($zipPath, $InstallPath) Remove-Item $zipPath -Write-Host "`nInstalled to $InstallPath" +Write-Host "Installed to $InstallPath" Write-Host "Starting..." Write-Host "Args: $args" & "$InstallPath\defendnot-loader.exe" @args