7-Zip

Post date: Mar 11, 2010 12:4:15 PM

@rem 7-Zip is a file archiver with the high compression ratio. 壓縮解壓檔案軟件

@rem The program supports 7z, ZIP, CAB, RAR, ARJ, LZH, CHM, GZIP, BZIP2, Z, TAR, CPIO, ISO, MSI, WIM, NSIS, RPM and DEB formats.

@rem https://www.7-zip.org/

if not exist "%SystemDrive%\Program Files (x86)" goto not_64bit

if exist Seven-Zip\7z1900-x64.exe goto next_64bit

start /wait "" wget.exe "https://7-zip.org/a/7z1900-x64.exe" --directory-prefix=Seven-Zip

:next_64bit

start /wait Seven-Zip\7z1900-x64.exe /S

goto end

:not_64bit

if exist Seven-Zip\7z1900.exe goto next

start /wait "" wget.exe "https://7-zip.org/a/7z1900.exe" --directory-prefix=Seven-Zip

:next

start /wait Seven-Zip\7z1900.exe /S

:end