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