Update FastCopy using new installer

This commit is contained in:
2Shirt 2018-09-16 19:39:05 -06:00
parent e4bcf88fe5
commit f3885f25d6
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -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"