mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
22 lines
582 B
PowerShell
22 lines
582 B
PowerShell
[CmdletBinding()]
|
|
|
|
param (
|
|
[string]
|
|
[Parameter(Mandatory=$true)]
|
|
$TargetDir,
|
|
|
|
[string]
|
|
[Parameter(Mandatory=$true)]
|
|
$TargetFileName
|
|
)
|
|
|
|
Write-Output "===== Beginning $($PSCmdlet.MyInvocation.MyCommand) ====="
|
|
|
|
$path_editBin = Join-Path -Path $PSScriptRoot -ChildPath "exes\editbin.exe"
|
|
$path_outputExe = Join-Path -Path $TargetDir -ChildPath $TargetFileName
|
|
|
|
# Set LargeAddressAware
|
|
Write-Output "Setting LargeAddressAware on binary file:`n`"$path_outputExe`" `nwith:`n`"$path_editBin`""
|
|
& "$path_editBin" /largeaddressaware "$path_outputExe"
|
|
|
|
Write-Output "" |