mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-26 03:58:45 +08:00
22 lines
581 B
PowerShell
22 lines
581 B
PowerShell
param (
|
|
[string]
|
|
[Parameter(Mandatory=$true)]
|
|
$TargetDir,
|
|
|
|
[string]
|
|
[Parameter(Mandatory=$true)]
|
|
$TargetFileName
|
|
)
|
|
|
|
Write-Output "===== Beginning $($PSCmdlet.MyInvocation.MyCommand) ====="
|
|
|
|
# Find editbin.exe
|
|
$path_editBin = & "$PSScriptRoot\find_vstool.ps1" -FileName "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 "" |