mirror of
https://github.com/es3n1n/defendnot.git
synced 2026-08-02 10:32:01 +00:00
refactor(installer): change install loc to program files
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user