Update FastCopy using new installer
This commit is contained in:
parent
e4bcf88fe5
commit
f3885f25d6
1 changed files with 17 additions and 7 deletions
|
|
@ -254,20 +254,30 @@ if ($MyInvocation.InvocationName -ne ".") {
|
||||||
# Fast Copy
|
# Fast Copy
|
||||||
Write-Host "Extracting: FastCopy"
|
Write-Host "Extracting: FastCopy"
|
||||||
try {
|
try {
|
||||||
|
# Extract Installer
|
||||||
$ArgumentList = @(
|
$ArgumentList = @(
|
||||||
"x", "$Temp\fastcopy64.zip", "-o$Build\bin\amd64\FastCopy",
|
"e", "$Temp\fastcopy.zip", "-o$Temp",
|
||||||
"-aoa", "-bso0", "-bse0", "-bsp0",
|
"-aoa", "-bso0", "-bse0", "-bsp0")
|
||||||
"-x!setup.exe", "-x!*.dll")
|
|
||||||
Start-Process -FilePath $SevenZip -ArgumentList $ArgumentList -NoNewWindow -Wait
|
Start-Process -FilePath $SevenZip -ArgumentList $ArgumentList -NoNewWindow -Wait
|
||||||
|
|
||||||
|
# Extract 64-bit
|
||||||
$ArgumentList = @(
|
$ArgumentList = @(
|
||||||
"e", "$Temp\fastcopy32.zip", "-o$Build\bin\x86\FastCopy",
|
"/NOSUBDIR", "/DIR=$Build\bin\amd64\FastCopy",
|
||||||
"-aoa", "-bso0", "-bse0", "-bsp0",
|
"/EXTRACT64")
|
||||||
"-x!setup.exe", "-x!*.dll")
|
Start-Process -FilePath "$TEMP\FastCopy354_installer.exe" -ArgumentList $ArgumentList -NoNewWindow -Wait
|
||||||
Start-Process -FilePath $SevenZip -ArgumentList $ArgumentList -NoNewWindow -Wait
|
Remove-Item "$Build\bin\amd64\FastCopy\setup.exe" -Force
|
||||||
|
|
||||||
|
# Extract 32-bit
|
||||||
|
$ArgumentList = @(
|
||||||
|
"/NOSUBDIR", "/DIR=$Build\bin\x86\FastCopy",
|
||||||
|
"/EXTRACT32")
|
||||||
|
Start-Process -FilePath "$TEMP\FastCopy354_installer.exe" -ArgumentList $ArgumentList -NoNewWindow -Wait
|
||||||
|
Remove-Item "$Build\bin\x86\FastCopy\setup.exe" -Force
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-Host (" ERROR: Failed to extract files." ) -ForegroundColor "Red"
|
Write-Host (" ERROR: Failed to extract files." ) -ForegroundColor "Red"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Killer Network Driver
|
# Killer Network Driver
|
||||||
Write-Host "Extracting: Killer Network Driver"
|
Write-Host "Extracting: Killer Network Driver"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue