Fixed update_fastcopy()
This commit is contained in:
parent
c1324548ce
commit
6246393894
1 changed files with 20 additions and 22 deletions
|
|
@ -250,35 +250,33 @@ def update_fastcopy():
|
||||||
# Remove existing folders
|
# Remove existing folders
|
||||||
remove_from_kit('FastCopy')
|
remove_from_kit('FastCopy')
|
||||||
|
|
||||||
# Download
|
# Download installer
|
||||||
download_to_temp('FastCopy.zip', SOURCE_URLS['FastCopy'])
|
download_to_temp('FastCopy.exe', SOURCE_URLS['FastCopy'])
|
||||||
|
_installer = r'{}\FastCopy.exe'.format(global_vars['TmpDir'])
|
||||||
# Extract installer
|
|
||||||
extract_temp_to_bin('FastCopy.zip', 'FastCopy')
|
|
||||||
_path = r'{}\FastCopy'.format(global_vars['BinDir'])
|
|
||||||
_installer = 'FastCopy354_installer.exe'
|
|
||||||
|
|
||||||
# Extract 64-bit
|
|
||||||
cmd = [
|
|
||||||
r'{}\{}'.format(_path, _installer),
|
|
||||||
'/NOSUBDIR', '/DIR={}'.format(_path),
|
|
||||||
'/EXTRACT64']
|
|
||||||
run_program(cmd)
|
|
||||||
shutil.move(
|
|
||||||
r'{}\FastCopy\FastCopy.exe'.format(global_vars['BinDir']),
|
|
||||||
r'{}\FastCopy\FastCopy64.exe'.format(global_vars['BinDir']))
|
|
||||||
|
|
||||||
# Extract 32-bit
|
# Extract 32-bit
|
||||||
|
_path32 = r'{}\FastCopy'.format(global_vars['BinDir'])
|
||||||
cmd = [
|
cmd = [
|
||||||
r'{}\{}'.format(_path, _installer),
|
_installer,
|
||||||
'/NOSUBDIR', '/DIR={}'.format(_path),
|
'/NOSUBDIR', '/DIR={}'.format(_path32),
|
||||||
'/EXTRACT32']
|
'/EXTRACT32']
|
||||||
run_program(cmd)
|
run_program(cmd)
|
||||||
|
|
||||||
|
# Extract 64-bit
|
||||||
|
_path64 = r'{}\FastCopyTmp'.format(global_vars['TmpDir'])
|
||||||
|
cmd = [
|
||||||
|
_installer,
|
||||||
|
'/NOSUBDIR', '/DIR={}'.format(_path64),
|
||||||
|
'/EXTRACT64']
|
||||||
|
run_program(cmd)
|
||||||
|
shutil.move(
|
||||||
|
r'{}\FastCopy.exe'.format(_path64),
|
||||||
|
r'{}\FastCopy64.exe'.format(_path32))
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
os.remove(r'{}\{}'.format(_path, _installer))
|
remove_item(r'{}\setup.exe'.format(_path32))
|
||||||
os.remove(r'{}\setup.exe'.format(_path, _installer))
|
remove_item(_path64)
|
||||||
remove_from_temp('FastCopy.zip')
|
remove_from_temp('FastCopy.exe')
|
||||||
|
|
||||||
|
|
||||||
def update_wimlib():
|
def update_wimlib():
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue